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
JP-3595: handling for NIRCam GRISM Time Series Pointing offset SR #8449
Conversation
Regression test run started here Per our discussion at stand-up today, I found a way to factor this that I'm happy with, which was to modify primarily extract_2d, pulling the requisite transforms from the wcs object. There is no longer a need to "remember" the pixel value of the offset between steps, nor compute it twice. The only slightly strange thing is that now I'd like input on how to handle regtests for this change. We could either add an entirely new rate file as input and extract_2d file as output, or change the current nircam TSO test data to be a dataset with an offset. Or, we could write no new regtest at all - the lines are technically covered by the current regtest, it just finds an offset near zero. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8449 +/- ##
==========================================
+ Coverage 56.38% 56.56% +0.17%
==========================================
Files 387 387
Lines 38716 38797 +81
==========================================
+ Hits 21830 21944 +114
+ Misses 16886 16853 -33 ☔ View full report in Codecov by Sentry. |
Another regtest run for just the tsgrism stuff, including one new regtest, is here |
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.
Looks good overall. Just a few minor questions and comments.
Note for the record that the regtest run was completely clean (no failures). |
I wonder if there's some place in RTD that this procedure can be mentioned. Is there any place where we already mention that for TSGRISM observations we assume the target is located at XREF_SCI/YREF_SCI? If so, that could be updated to explain how we now also check for offsets. |
I'm checking the docs now |
The pixel values where the source is centered are discussed on the readthedocs page of extract_2d, which I will update, as well as on this page, which isn't exactly readthedocs, but nevertheless it might be a good place to state that in rare cases one might wish to offset the center pixel in X and that this is supported. |
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.
Looks good to me.
Resolves JP-3595
Closes #8420
This PR adds support for extraction of spectra in NIRCam GRISM TSO mode when an Offset Special Requirement is specified, which manifests as a nonzero dither XOFFSET. This is handled in
extract_2d
. A unit test was added covering the function that computes this offset.One unit test of
assign_wcs
was also modified so that its xfail could be removed.Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR