This error happened when I ran pyaxe on ACS/WFC/G800L-F775W. Data were downloaded from MAST (before the pipeline update), PID = 15401, filters = ['G800L','F775W'], SUBARRAY = False. This is WR96, and the data were used in a recent ISR. Note that, the data set composes of both subarray and full images. Only full images were used in the run.
KeyError Traceback (most recent call last)
in
5 backims="ACS.WFC.CHIP2.msky.1.fits",
6 norm=False,
----> 7 mfwhm=3.0)
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/pyaxe/axesrc/axetasks.py in axeprep(inlist, configs, wavelength, backgr, backims, backped, mfwhm, norm, gcorr)
168 gcorr=gcorr)
169
--> 170 aXePrep.run()
171 del aXePrep
172
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/pyaxe/axesrc/axepreptor.py in run(self)
546 # make a background PET if necessary
547 if 'backgr' in self.params and self.params['backgr']:
--> 548 self._subtract_background(ext_info)
549
550 # make a background PET if necessary
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/pyaxe/axesrc/axepreptor.py in _subtract_background(self, ext_info)
390 else:
391 # make normal background subtraction
--> 392 goodreturn = self._subtract_sky(ext_info)
393
394 if goodreturn:
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/pyaxe/axesrc/axepreptor.py in _subtract_sky(self, ext_info, flag)
180 "subtracted!".format(self.grisim))
181
--> 182 npix = int(grism_file['NAXIS1']) * int(fits_head['NAXIS2'])
183
184 # Compute the ratio of the grism SCI image to the background image
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/astropy/io/fits/hdu/hdulist.py in __getitem__(self, key)
305 try:
306 return self._try_while_unread_hdus(super().__getitem__,
--> 307 self._positive_index_of(key))
308 except IndexError as e:
309 # Raise a more helpful IndexError if the file was not fully read.
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/astropy/io/fits/hdu/hdulist.py in _positive_index_of(self, key)
759 """
760
--> 761 index = self.index_of(key)
762
763 if index >= 0:
~/anaconda3/envs/pyaxe/lib/python3.7/site-packages/astropy/io/fits/hdu/hdulist.py in index_of(self, key)
740
741 if (found is None):
--> 742 raise KeyError(f'Extension {key!r} not found.')
743 else:
744 return found
KeyError: "Extension 'NAXIS1' not found."
This error happened when I ran pyaxe on ACS/WFC/G800L-F775W. Data were downloaded from MAST (before the pipeline update), PID = 15401, filters = ['G800L','F775W'], SUBARRAY = False. This is WR96, and the data were used in a recent ISR. Note that, the data set composes of both subarray and full images. Only full images were used in the run.