Closed stscijgbot-jp closed 3 weeks 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
iscale
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.
Comment by Melanie Clarke on JIRA:
Fixed by #8866
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#L367that 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.