# embed_subs.py: Can be used to embed WFC3 images taken in subarray # readout mode into a blank full-frame image. Requires the _flt.fits # and _spt.fits files as input for each image to be processed. # Wildcards may be used in the input string, e.g. *flt.fits, in order # to process many files in one run. # # A new output _flt.fits file will be created for each input file, # with the new file having the same rootname as the old, but with the # final character (often a "q") replaced with the letter "f". The full # SCI, ERR, DQ structure (for UVIS exposures) and SCI, ERR, DQ, SAMP, TIME # structure (for IR exposures) is reproduced in the output _flt file. # The SCI and ERR values for the pixels outside the original subarray # region will be set to zero, and the DQ values will be set to 4, in # order to indicate that those pixels should not be used in any subsequent # processing or analysis. # # H. Bushouse (STScI) # Sept. 2011 To execute this script from within pyraf: execfile('embed_subs.py') and execute this script from the OS level (i.e. command prompt): python embed_subs.py