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

Check for distorted PSFs within the PSF library file #785

Open
bhilbert4 opened this issue Apr 12, 2022 · 0 comments
Open

Check for distorted PSFs within the PSF library file #785

bhilbert4 opened this issue Apr 12, 2022 · 0 comments

Comments

@bhilbert4
Copy link
Collaborator

At the moment, Mirage uses the to_griddedpsf() function from webbpsf to read in the gridded PSF library. However, Mirage is only reading the 0th extension of the file. However, if the PSFs include distortion, then they will be saved in the 1st extension of the fits file, based on the webbpsf documentation.

We should update our calls to to_griddedpsf() such that it reads in extension 1 if it exists and if not, fall back to extension 0.
There are 2 calls to to_griddedpsf() in psf_selection.py. Make sure to apply this to both.
https://github.com/spacetelescope/mirage/blob/master/mirage/psf/psf_selection.py#L397

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