-
Notifications
You must be signed in to change notification settings - Fork 63
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
Implement distortion for Roman #668
Conversation
Current implementation will require installing Python package Also will need to remove the hardcoded path to local WFI Zernike file. |
I also think there is no need to apply a rotation, like what is done for JWST NIRCam, NIRISS, or FGS. (Re-)Reading an email thread with a GSFC optical engineer from 2020, it's mentioned that "Pupil FITS is FPA coordinate and no need of rotation/flip", which suggests the pupil FITS files are already aligned with the detector frame. Moreover, it also appears the Zernikes as defined in the reference data (see "Zernike NOLL def" tab in the spreadsheet) are properly aligned with the exit (i.e. flipped) pupil, so I don't think we need to do any additional flip/rotation. Confirmation of this would be appreciated. |
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.
Would you need to add soc_roman_tools as a dependency?
Yes, I think we'll have to add it to the dependencies. |
@BradleySappington is this as simple as adding this into the toml file? (soc_roman_tools dependency) |
Yes, add it with any preferred versioning to the dependencies section of pyproject.toml |
Okay, I can add it to the PR: |
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.
This looks good.
Other than the approximate V2/V3 location of the Roman Coronagraph, there is not much information available in the SIAF (that information simply does not exist yet), so I had to enforce no distortion for the Roman CGI. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #668 +/- ##
===========================================
+ Coverage 54.75% 54.91% +0.16%
===========================================
Files 16 16
Lines 6436 6466 +30
===========================================
+ Hits 3524 3551 +27
- Misses 2912 2915 +3
☔ View full report in Codecov by Sentry. |
@obi-wan76 @BradleySappington I think this is one is good to go. If you agree, we can fold it in the next release. |
Implement geometric distortion for Roman using the Roman SIAF. It appears we can use the same infrastructure already set up for JWST can be used for Roman as well.