buildDthProduct(pardict,
output,
extlist=None,
outlist=None,
wcs=None)
| source code
|
Parameters:
pardict - a dictionary containing (at least):
'data','outdata','outweight','outcontext'
where 'data' serves as the name of the backup template image,
and the others are filenames of the drizzle products.
output - filename of the final combined output image
extlist - list of EXTNAME's to be searched in the template image
outlist - list of EXTNAME's to be used for naming the output extensions
This function will package the two or three output files from
'drizzle' or 'tdrizzle' into a single output multi-extension
FITS file.
It uses a pre-existing multi-extension FITS file as a template
for the output product.
The list 'extlist' contains the names of the extensions from the
template image which will be used to build the output file.
A number of keywords are also updated based on values from the
drizzle products, including the CD matrix, CRPIX[1,2], CRVAL[1,2].
In addition, the template images will be of different size than
the drizzle products, yet this is handled automatically by PyFITS.
NOTE:
The output file will ALWAYS contain 'SCI','WHT', and 'CTX'
extensions.
|