-
Notifications
You must be signed in to change notification settings - Fork 174
JP-3639: Implement 1/f noise correction for ramp data #8669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8669 +/- ##
==========================================
+ Coverage 60.75% 61.74% +0.99%
==========================================
Files 375 377 +2
Lines 38367 38716 +349
==========================================
+ Hits 23308 23904 +596
+ Misses 15059 14812 -247 ☔ View full report in Codecov by Sentry. |
This is ready for initial reviews. There is one change outstanding for the NSClean implementation (#8745), which needs to merge first, but I'd like to get the rest of the code reviewed for software issues. I'll run regression tests after the NSClean change is done, unless it would be helpful to see them now. |
Regression tests started here: |
In the regression test results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 🎉
Resolves JP-3639
Closes #8517
Add a flicker noise correction step to the detector1 pipeline.
Implements both a median-based correction, based on Chris Willott's image1overf, and an fft-based algorithm, based on Bernard Rauscher's NSClean. The
nsclean
step in spec2 is now aliased to the clean_flicker_noise step, which can support either rate-like input or ramp-like input.Various scene masking options are provided for either correction option. When run from detector1, the ramp_fit step is run to generate a temporary rate image, used to generate the scene mask. For NIRSpec spectral data, if mask_science_regions is True, the assign_wcs and msaflagopen steps are additionally run to allow masking of the entire science area. For MIRI imaging data, if mask_science_regions is True, the flat_field step is run to retrieve NON_SCIENCE flags, used to block light from the metering structure.
Checklist for PR authors (skip items if you don't have permissions or they are not applicable)
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR