Skip to content
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-3238: Include dispersion factor in PHOTOM correction for NRC grism #8207

Merged
merged 4 commits into from
Jan 23, 2024

Conversation

stscirij
Copy link
Contributor

@stscirij stscirij commented Jan 19, 2024

Resolves JP-3238

Closes #7659

Added code to take acount of the fact that for NRC WFSS and TSGRISM datathe dispersion had been factored out of the absolute calibration because the dispersion varies with position and wavelength. This code puts that factor back in dividing the per-pixel conversion factors by the dispersion in Angstrom/pixel

Checklist for maintainers

  • added entry in CHANGES.rst within the relevant release section
  • updated or added relevant tests
  • updated relevant documentation
  • added relevant milestone
  • added relevant label(s)
  • ran regression tests, post a link to the Jenkins job below.
    How to run regression tests on a PR
  • Make sure the JIRA ticket is resolved properly

the dispersion had been factored out of the absolute calibration because
the dispersion varies with position and wavelength.  This code puts that
factor back in dividing the per-pixel conversion factors by the dispersion in
Angstrom/pixel
@stscirij stscirij requested a review from a team as a code owner January 19, 2024 17:23
Copy link

codecov bot commented Jan 22, 2024

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (b2fd704) 75.25% compared to head (6241041) 75.25%.

Files Patch % Lines
jwst/photom/photom.py 73.07% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8207      +/-   ##
==========================================
- Coverage   75.25%   75.25%   -0.01%     
==========================================
  Files         470      470              
  Lines       38470    38495      +25     
==========================================
+ Hits        28950    28968      +18     
- Misses       9520     9527       +7     
Flag Coverage Δ *Carryforward flag
nightly 77.37% <ø> (-0.01%) ⬇️ Carriedforward from 9a83387

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hbushouse
Copy link
Collaborator

Is there a regression test run from earlier that has these changes applied? If so, can you provide the link here?

@stscirij
Copy link
Contributor Author

Copy link
Collaborator

@hbushouse hbushouse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now. And previous regtest results show only the expected factor of ~10 difference in NRC wfss and tsgrism results.

@hbushouse hbushouse merged commit b5d9df6 into spacetelescope:master Jan 23, 2024
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Updated NIRCam WFSS photom algorithm to account for varying dispersion
2 participants