This PR provides significant additions and updates to various MIRI reduction procedures.
Implemented an alternate background subtraction routine to handle the MIRI glowstick, based on code provided by Nicolas Godoy, which avoids trimming of the first integration by dynamically matching the background on an integration by integration basis.
Implemented the new jump detection and ramp fitting algorithm developed by Tim Brandt, which has had significant improvements in reducing both spatially correlated and white noise in the images. Particularly for MIRI, and particularly for ramps with a large number of groups.
Implemented options to mask specific groups/pixels within a ramp to better combat the brighter fatter effect seen for the MIRI PSF. This is particularly useful when the reference observations reach a larger number of detector counts than the science. Can be performed uniformly on entire groups (basic) or dynamically on a pixel-by-pixel basis (advanced), in both cases the number of groups to trim can be estimated automatically by the code.
Adjusted steps that are run by default for MIRI data, following the pipeline the IPC and charge migration steps should not be performed and negatively impact data quality.
Note that the implemented jump detection and ramp fitting algorithm will eventually be incorporated into the JWST pipeline, so I will open an issue now so that we can eventually switch over from my custom written step.
This PR provides significant additions and updates to various MIRI reduction procedures.
Note that the implemented jump detection and ramp fitting algorithm will eventually be incorporated into the JWST pipeline, so I will open an issue now so that we can eventually switch over from my custom written step.