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

Ensure NaN values are excluded from sum in spectral extraction #8552

Open stscijgbot-jp opened 5 months ago

stscijgbot-jp commented 5 months ago

Issue JP-3655 was created on JIRA by David Law:

As discussed originally in JP-3250, NaNs in the flat variance array were previously contaminating the ERR estimates of extracted 1d spectra.  Most of the reasons for that have now been solved via that and other linked tickets.  A final aid will be provided by JP-3570 which will ensure consistency where SCI=NaN, ERR=NaN, and DQ=DO_NOT_USE prior to resampling/cube building.

As such, there should now never be pixels that have finite SCI values but NaN ERR values, etc.

However, as a safety precaution this ticket is to ensure that any such NaN values in the ERR array are ignored during spectral extraction, as they should have DO_NOT_USE set anyway.

stscijgbot-jp commented 2 months ago

Comment by David Law on JIRA:

Withdrawing this ticket; made obsolete thanks to JP-3250 and JP-3570.