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

Determine crpix from saif toggle #182

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Determine crpix from saif toggle #182

merged 3 commits into from
Jun 18, 2024

Conversation

wbalmer
Copy link
Collaborator

@wbalmer wbalmer commented Jun 9, 2024

See discussion in #114 . For data affected by bad fits writing behavior, for instance, the NIRCam BAR/NARROW offset position, it might be necessary to toggle calling the CRPIX values from pysaif, as opposed to recording them from the headers. This affects the position of the mask and therefore the coronagraphic throughput. Default behavior is unchanged and the toggle is set to false. Added to the appropriate functions in database.py

Potential improvement could look to incorporate @JarronL 's webbpsf_ext.imreg_tools.get_coron_apname function in the default database building step, but this change is non-intrusive and sufficient for current reductions (unlike the original implementation in #114 ).

Copy link
Collaborator

@AarynnCarter AarynnCarter 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 @wbalmer, just some typos to fix.

Can you confirm you've tested this on the data you're working on for both of the cr_from_siaf cases?

spaceKLIP/database.py Outdated Show resolved Hide resolved
spaceKLIP/database.py Outdated Show resolved Hide resolved
spaceKLIP/database.py Outdated Show resolved Hide resolved
spaceKLIP/database.py Outdated Show resolved Hide resolved
spaceKLIP/database.py Outdated Show resolved Hide resolved
@wbalmer
Copy link
Collaborator Author

wbalmer commented Jun 14, 2024

Hi Aarynn - yep! I have tested the toggle behaves well when set false by default, when set false explicitly, and when set true explicitly.

@AarynnCarter AarynnCarter merged commit bcd9a96 into develop Jun 18, 2024
4 checks passed
@wbalmer wbalmer deleted the cr_from_saif_toggle branch June 18, 2024 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants