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.
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.