-
Notifications
You must be signed in to change notification settings - Fork 171
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-1791: Initial commit of WFSS contam correction step and INS grism library modules #5508
Conversation
for background, the essence of a lot of these are already implemented in jwst as part of the 2b spec processing and reference files |
Good to know. I assumed that a lot or all of what these routines are doing with grism Config (calibration) info is already in the WCS work that you did for grisms and anything dealing with that kind of stuff will need to be migrated to make use of the WCS objects. |
yah, grismconf and the parts of poly we ended up using are in transforms/models |
Codecov Report
@@ Coverage Diff @@
## master #5508 +/- ##
==========================================
- Coverage 77.81% 77.17% -0.65%
==========================================
Files 399 405 +6
Lines 35354 35740 +386
==========================================
+ Hits 27512 27583 +71
- Misses 7842 8157 +315
*This pull request uses carry forward flags. Click here to find out more.
Continue to review full report at Codecov.
|
@jdavies-st thanks for the comments. There's a lot of this that will be reorganized, if not completely rewritten, yet and some of it (e.g. grismconf and poly) will go away once I'm done migrating the rest of the code over to getting everything we need from our WCS objects and ref files, rather than the aXe-style config files. I'll try to incorporate your suggestions as I go. But hey, at least I finally got the Travis build to succeed! |
Latest large set of commits contains LOTS of cleanup, removal of unused functions, complete code commentary, and new functions for handling flux calibration (actually inverse flux calibration) where needed. Reopening for review and hope to merge soon. This version has all of the basic mechanics in place. Still needs a couple of enhancements to handle multiple spectral orders and get the scaling of simulated spectra correct. Those changes will follow in a later PR. Just want to get the basics merged in for now. |
Complete user docs for the new step and unit tests will also follow in subsequent PRs. |
Original C module has been replaced, thus there's no longer an issue with the license.
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.
LGTM. I left a couple minor comments inline.
These are the code modules from Nor Pirzkal's various grism repos that we need in order to support the WFSS contamination corrections. These modules do the work of creating simulated spectra for sources identified in direct images. These will all need a lot of clean-up and rearranging to get them to work from within the jwst pipeline environment. Just getting them into the repo to start with. Some of them may end up going away eventually. The functions/methods in these modules will be called by a new calwebb_spec2 step that will do decontamination of WFSS spectra.
Resolves JP-1791
Resolves #5503
Resolves JP-1924
Resolves #5750