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

resample uses datamodel for temporary storage of iscale #8721

Closed stscijgbot-jp closed 3 weeks ago

stscijgbot-jp commented 2 months ago

Issue JP-3713 was created on JIRA by Brett Graham:

resample during many_to_one uses the datamodel as temporary storage for iscale: https://github.com/spacetelescope/jwst/blob/8efc26fdbda7936199d1a05cb57707d2c1cb0665/jwst/resample/resample.py#L367

that is later used during variance array resampling: https://github.com/spacetelescope/jwst/blob/8efc26fdbda7936199d1a05cb57707d2c1cb0665/jwst/resample/resample.py#L551

and then removed from the model: https://github.com/spacetelescope/jwst/blob/8efc26fdbda7936199d1a05cb57707d2c1cb0665/jwst/resample/resample.py#L414

 

This forces resample to write out a temporary file for the model between science and variance array resampling. This could likely be avoided perhaps as part of a larger refactoring of resample to combine variance and science array resampling.

stscijgbot-jp commented 3 weeks ago

Comment by Melanie Clarke on JIRA:

Fixed by #8866