-
Notifications
You must be signed in to change notification settings - Fork 181
JP-4095: Fix velocity correction in WCS inverse #9783
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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9783 +/- ##
=======================================
Coverage 84.14% 84.15%
=======================================
Files 366 366
Lines 37790 37792 +2
=======================================
+ Hits 31799 31804 +5
+ Misses 5991 5988 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Regression tests: It looks like these changes have a minor impact on NIRSpec MOS and IFU products for spec2. The edges of the valid IFU REGIONS change a little bit, I assume because the wavelength inversion has changed a little. For MOS and IFU, MSA flagging is impacted, which modified the DQ plane. The only SCI data affected is when nsclean is run, which I think makes sense, since the masked science regions are changing slightly. NIRISS products do not seem to be impacted by the typo fix. |
f3eedbf to
0ce3e1f
Compare
nden
left a comment
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.
Mea culpa!
LGTM.
0ce3e1f to
651cd3a
Compare
|
NIRSpec is happy with the testing they have done, so I'm moving this out of draft. |
651cd3a to
b51c005
Compare
tapastro
left a comment
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.
New RT set here: https://github.com/spacetelescope/RegressionTests/actions/runs/17835658949
Not sure if outputs have changed to make okifying those more robust, and the MIRI failures don't help with clarity. Otherwise, LGTM
Thanks @tapastro - I can okify from the new one, skipping the MIRI failures. Unless you'd rather wait to merge until RT are clear again? |
I'm fine with merging and ok'ing the non-MIRI failures. |
Resolves JP-4095
Fix a missing velocity correction in the inverse transform for NIRSpec IFU. This seems to fix a round trip error of up to ~0.5 pixel. Example case: jw01251004001_03107_00001_nrs2_rate.fits, with velosys = 20 km/s.
I checked the other modes for similar errors, and found that NIRSpec MOS and FS needs the same handling. I'm not sure if we've noted similar round trip errors for these modes, but checking MOS regression test data jw01345066001_05101_00001_nrs1_rate.fits with velosys -15 km/s, it looks like it improves round trip error from ~.08 pixel to ~.001 pixel in a quick spot check on slit 35.
For the other instruments, where the velocity_correction is used, they appear to be propagating it to the inverse correctly.
I did note what looks like a typo in the NIRISS SOSS handling for order 2 and 3 so I fixed it here, but I can move to another PR if it needs separate review.Edit: typo fix for NIRISS SOSS handling moved to #9747
Tasks
Build 12.0(use the latest build if not sure)no-changelog-entry-needed)changes/:echo "changed something" > changes/<PR#>.<changetype>.rst(see changelog readme for instructions)docs/pageokify_regteststo update the truth files