Skip to content

Commit

Permalink
Merge pull request #201 from gbrammer/badpix-jan2024
Browse files Browse the repository at this point in the history
Implement update NIRCam LW bad pixel masks
  • Loading branch information
gbrammer committed Jan 12, 2024
2 parents 6ae1acb + c434427 commit 1db0dab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file added grizli/data/nrc_badpix_240112_NRCALONG.fits.gz
Binary file not shown.
Binary file added grizli/data/nrc_badpix_240112_NRCBLONG.fits.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions grizli/jwst_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,8 @@ def initialize_jwst_image(filename, verbose=True, max_dq_bit=14, orig_keys=ORIG_
_det = img[0].header['DETECTOR']

bpfiles = [os.path.join(os.path.dirname(__file__),
f'data/nrc_badpix_240112_{_det}.fits.gz')]
bpfiles += [os.path.join(os.path.dirname(__file__),
f'data/nrc_badpix_231206_{_det}.fits.gz')]
bpfiles += [os.path.join(os.path.dirname(__file__),
f'data/nrc_badpix_20230710_{_det}.fits.gz')]
Expand Down
2 changes: 2 additions & 0 deletions grizli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6089,6 +6089,8 @@ def drizzle_from_visit(visit, output=None, pixfrac=1., kernel='point',
if (extra_wfc3ir_badpix) & (_inst in ['NIRCAM','NIRISS']):
_det = flt[0].header['DETECTOR']
bpfiles = [os.path.join(os.path.dirname(__file__),
f'data/nrc_badpix_240112_{_det}.fits.gz')]
bpfiles += [os.path.join(os.path.dirname(__file__),
f'data/nrc_badpix_231206_{_det}.fits.gz')]
bpfiles += [os.path.join(os.path.dirname(__file__),
f'data/jwst_nircam_newhot_{_det}_extra20231129.fits.gz')]
Expand Down

0 comments on commit 1db0dab

Please sign in to comment.