spacetelescope / jwst

Python library for science observations from the James Webb Space Telescope
https://jwst-pipeline.readthedocs.io/en/latest/
Other
570 stars 167 forks source link

Error in NIRSpec spectral WCS with all-NaN input to resample #8561

Closed stscijgbot-jp closed 5 months ago

stscijgbot-jp commented 5 months ago

Issue JP-3659 was created on JIRA by Melanie Clarke:

When the output WCS is computed for NIRSpec spectral modes in the resample_spec step, the results are incorrect when the first input data set contains only NaN or zero.

This currently happens rarely, but may occur if there are small parts of MOS spectra that were initially assigned a WCS, but then later could not be calibrated (either by the flat_field or photom steps). 

I found this while testing JP-3570 on regression test data set jw01345-o066_b000000030_nirspec_f170lp-g235m_cal.fits.  Right now, it is more common that these kinds of spectral scraps contain a combination of 0.0 and NaN; when JP-3570 is complete, they will contain only NaN.

 

stscijgbot-jp commented 5 months ago

Comment by Howard Bushouse on JIRA:

Fixed by #8562