spacetelescope / jwst

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

add options to reduce memory usage in resample #8709

Open stscijgbot-jp opened 1 month ago

stscijgbot-jp commented 1 month ago

Issue JP-3707 was created on JIRA by Ned Molter:

After implementing ModelLibrary in calwebb_image3 (see [JP-3690[https://jira.stsci.edu/browse/JP-3690]), the biggest memory bottleneck in the image3 pipeline is resample_many_to_one. The reason for this is the requirement to allocate a data array, three separate variance arrays, a weighting array, and a context array, all of which are fairly large as they scale with the size of the output.

Two options could be added to resample to reduce memory usage:

The use-cases for these options, their defaults, and the benefits/drawbacks of exposing them need to be discussed with INS. Once a decision is made, this ticket will cover that work.