-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add support for new sensing point and target phase map #937
Conversation
Hello @obi-wan76, Thank you for updating !
Comment last updated at 2024-12-04 13:41:29 UTC |
…perture under the new field point PRDOPSSOC-067
For testing. Here is an OPD file created using PID 4556 Obs. 7 (test of new field point) with the correct aperture name as expected from SIAF. This file can be add to the webbpsf-data folder, under MAST_JWST_WSS_OPDs. Then you can simply load this file:
Note that this is not an official MAST OPD, this file is for testing only. |
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.
Thanks for putting this together, and getting the data files ready too! I think the code can be simplified significantly by writing a utility function to avoid so much code repetition. See comments...
…better handle the use of the correct target phase maps based on the NIRCAM aperture
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. I wanted to check one thing about the requirements: I think it should be <= instead of < for the current pysiaf 0.24.1. Yes?
Also, we should also update the dependency versions in pyproject.toml
too. (That's the more official way to specify the dependencies in the latest standards for python packaging, and pyproject.toml is what pip uses when computing dependencies unless you explicitly tell it to install using the requirements.txt file.)
One additional optional suggested small revision, see comment below about a minor runtime efficiency improvement.
… necesary it also fix pysiaf requirements including in pyprojecttoml
I added the dependency on |
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 thanks!
This PR adds support for the upcoming new field point in the wavefront sensing maintenance program
Rationale:
Around December 2024 the wavefront sensing and control maintenance program will start using a new field point as we changed from NIRCAm A3 FP1 to NIRCam A1 FP6. The reason for this change is to reduce the effect of persistence that could affect nircam observations that are schedule right after the sensing program observations that use a bright target.
For this PR we need pysiaf 0.23.3 that uses PRDOPSSOC-067. This release is the one that add support for the new NIRCam apertures, namely:
pps_aper detector subarray exp_type filter
NRCA1_FP6 NRCA1 SUB8FP6A NRC_IMAGE F212N
NRCA1_FP6_SUB8 NRCA1 SUB8FP6A NRC_IMAGE F212N
NRCA1_FP6_SUB64 NRCA1 SUB64FP6A NRC_TACQ F212N
The new target phase file, wss_target_phase_fp6.fits, is under webbpsf-data-source (internal only); this file is just an upscaled version of the original phase map 3_was_conf_fa_trg_phase_maps.fits (256x256) to a 1024x1024 size in order to match webbpsf default 1024x1024 JWST pupil.
This is a comparison of the target phase map, current (left) and new (right)
siaf