From db49ff797938fce0649794c8f6d7d6d1ec46c9c9 Mon Sep 17 00:00:00 2001 From: Jim Chiang Date: Tue, 15 Jan 2019 21:48:13 -0800 Subject: [PATCH] enable client code to set OBSTYPE/IMGTYPE keyword in raw file output --- python/desc/imsim/camera_readout.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/desc/imsim/camera_readout.py b/python/desc/imsim/camera_readout.py index 02740563..4c84659a 100644 --- a/python/desc/imsim/camera_readout.py +++ b/python/desc/imsim/camera_readout.py @@ -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. @@ -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('_')