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

JWST headers in preprocessing #77

Merged
merged 3 commits into from
May 24, 2022
Merged

JWST headers in preprocessing #77

merged 3 commits into from
May 24, 2022

Conversation

gbrammer
Copy link
Owner

These fixes apply updates to the JWST headers to make them look like HST for AstroDrizzle, to and fro a few times where various functions need it. This should fix #69.

Basically, everything that needs to be done to the JWST images for preprocessing is done in prep.fresh_flt_files, which calls out to jwst_utils.initialize_jwst_image for JWST exposures.

This includes:

  • Update headers with HST-like keywords, making copies of the original keywords
  • Apply the flat-field correction with the pipeline step if necessary
  • Scale by the gain if BUNIT=DN/S
  • Update wcs headers with the pipeline step, including making grism exposures "look like" direct exposures so that the 2D WCS gets populated
  • Clip maximum DQ bits to 16 bit integers

A few other modifications include

  • The hard-coded reference filenames have also been replaced with calls to the pipeline steps.
  • Don't do "fix_star_centers", which was clipping out the centers of bright cluster galaxies

@gbrammer gbrammer mentioned this pull request May 24, 2022
@gbrammer gbrammer merged commit f96c910 into master May 24, 2022
@gbrammer gbrammer deleted the fix-jwst-flats branch May 24, 2022 14:54
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.

Handle JWST FITS headers
1 participant