Skip to content

Commit

Permalink
enable client code to set OBSTYPE/IMGTYPE keyword in raw file output
Browse files Browse the repository at this point in the history
  • Loading branch information
jchiang87 committed Jan 16, 2019
1 parent 037a8e3 commit db49ff7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/desc/imsim/camera_readout.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def write_amplifier_image(self, amp_name, outfile, overwrite=True):
output.writeto(outfile, overwrite=overwrite)

def write_fits_file(self, outfile, overwrite=True, run_number=None,
lsst_num='LCA-11021_RTM-000', compress=True):
lsst_num='LCA-11021_RTM-000', compress=True,
image_type='SKYEXP'):
"""
Write the processed eimage data as a multi-extension FITS file.
Expand All @@ -478,7 +479,7 @@ def write_fits_file(self, outfile, overwrite=True, run_number=None,
output[0].header['TIMESYS'] = 'TAI'
output[0].header['LSST_NUM'] = lsst_num
output[0].header['TESTTYPE'] = 'IMSIM'
output[0].header['IMGTYPE'] = 'SKYEXP'
output[0].header['IMGTYPE'] = image_type
output[0].header['OBSTYPE'] = output[0].header['IMGTYPE']
output[0].header['MONOWL'] = -1
raft, ccd = output[0].header['CHIPID'].split('_')
Expand Down

0 comments on commit db49ff7

Please sign in to comment.