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-3043 user option to select wavelength range of IFU cube not working for NIRSpec #7427
JP-3043 user option to select wavelength range of IFU cube not working for NIRSpec #7427
Conversation
There were numerous flake error that I also fixed to make sure this went through ci testing correctly |
I still need to run the regression tests - the system is busy now |
Codecov ReportBase: 78.61% // Head: 78.49% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #7427 +/- ##
==========================================
- Coverage 78.61% 78.49% -0.13%
==========================================
Files 455 455
Lines 39144 39148 +4
==========================================
- Hits 30773 30729 -44
- Misses 8371 8419 +48
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Code looks ok I think, but a couple more general questions.
|
The min and max wavelength are supposed to work for MIRI. But I just tested with MIRI data and I get an error. Let me fix this |
The min and max wavelength ranges do work for MIRI. |
@drlaw1558 @jmuzerolle
For NIRSpec the default is to make single grating/filter IFU cubes. If the user wanted to have multiple filters then I think we would run into a problem because there will not be a wavelength table read in. There is an initial min and max wavelength that is read in from the first extension of the cubepars reference file. For NIRSPEC the wavelength tables to be used for the non-linear case are read in for weighting = 'msm' or 'emsm' . Concerning this PR and having the user supply min and max wavelengths: **It might be TIME to clean up cube_build. @drlaw1558 do we need to keep weighting = emsm or msm. It would REALLY REALLY clean things up if we just always used drizzle. |
@jemorrison Now that we've had a chance to test things fairly extensively with flight data, I'm inclined to agree with ditching the MSM and EMSM code. This would simplify both the code and the reference files. At the same time, I'm inclined to change NIRSpec to match the MIRI convention of setting wavelength ranges from cubepar, both for code clarity and because it's helpful to have cubes with fixed sizes. That latter isn't my call though. We should split up this work. This ticket as it exists right now fixes the immediate issue with specifying a wavelength range, so it should probably be merged and closed. I'll open a new JP issue about the general overhaul to cube building and solicit feedback on there from NIRSpec prior to moving forward. |
Yes lets try and get this into the pipeline soonish (at least the development version). This will help a user with Helpdesk ticket who wanted to create NIRSpec IFUcube and select the wavelength range |
6735b53
to
6191232
Compare
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.
Regression test run at https://plwishmaster.stsci.edu:8081/job/RT/job/JWST-Developers-Pull-Requests/535/ is clean. Merging. |
Resolves JP-3043
Closes #
This PR addresses a bug for NIRSpec IFU when trying to select the wavelength ranges to make the IFU cube. The code was not using these parameters for NIRSpec data.
Checklist for maintainers
CHANGES.rst
within the relevant release sectionHow to run regression tests on a PR