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

Crop Function Upgrade: Handle modes other than HLC #285

Open
ell-bogat opened this issue Jan 14, 2025 · 0 comments
Open

Crop Function Upgrade: Handle modes other than HLC #285

ell-bogat opened this issue Jan 14, 2025 · 0 comments

Comments

@ell-bogat
Copy link
Contributor

ell-bogat commented Jan 14, 2025

Is your feature request related to a problem? Please describe.
The crop function in l3_to_l4.py currently assumes the input data is taken using the HLC mode, and raises an error if not.

Describe the solution you'd like
Expand the crop function to handle additional instrument modes, and adjust the default behavior of the crop function based on the mode. E.g. for the HLC mode, the crop function assumes by default that you want to crop to a region the size of the HLC dark hole, centered on the star position, so we should adjust the size of the crop region based on the dark hole size for a given mode. The header keywords for the star position would probably remain the same, but I'm not certain yet.

I think the size of the dark hole is essentially limited by the lyot stop, so we can determine what the behavior should be using the "LSAMNAME" keyword in the primary header.

Table 1 of this paper describes a bunch of possible modes and the associated Precision Alignment Mechanism (PAM) positions associated with them: https://arxiv.org/pdf/2108.05986

And this page in the Confluence space outlines all the header keywords associated with the PAM: https://collaboration.ipac.caltech.edu/display/romancoronagraph/CFAMNAME%2C+DPAMNAME%2C+FPAMNAME%2C+FSAMNAME%2C+LSAMNAME%2C+SPAMNAME

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

No branches or pull requests

1 participant