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

Allow input raw dark to have no zeroframe. Create approximation. #470

Merged

Conversation

bhilbert4
Copy link
Collaborator

This PR makes a small adjustment to dark_prep.py that allows a user to input a non-RAPID dark current ramp that has no zeroframe extension. This allows for older ground testing darks to be used as inputs.

In the case where a non-RAPID dark with no zeroframe extension is provided, dark_prep.py will construct an approximation of the zeroframe extension by normalizing the signal in the initial group by the exposure time of a single frame. This zeroframe will be used in obs_generator.py when it is added to the zeroframe containing the signal of the simulated astronomical sources. This summed zeroframe is placed in the zeroframe extension of the uncal file output by Mirage. At the moment, the jwst calibration pipeline does not do anything with this extension. In the future, it will be used to calculate the signal rate for pixels that are saturated in all groups of an exposure.

@bhilbert4 bhilbert4 self-assigned this Mar 23, 2020
@bhilbert4 bhilbert4 merged commit e326c5f into spacetelescope:master Mar 23, 2020
@bhilbert4 bhilbert4 deleted the dark-prep-with-no-zeroframe branch March 23, 2020 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant