This class manages the creation of the array objects which will be
used by Drizzle. The three arrays, SCI/WHT/CTX, will be setup either as
extensions in a single multi-extension FITS file, or as separate FITS
files.
|
|
__init__(self,
plist,
build=True,
wcs=None,
single=False,
blot=False)
The object 'plist' must contain at least the following members:
plist['output'] - name of output FITS image (for SCI)
plist['outnx'] - size of X axis for output array
plist['outny'] - size of Y axis for output array
If 'single=yes', then 'plist' also needs to contain:
plist['outsingle']
plist['outsweight']
plist['outscontext']
If 'blot=yes', then 'plist' also needs:
plist['data']
plist['outblot']
plist['blotnx'],plist['blotny'] |
source code
|
|
|
|
set_bunit(self,
bunit)
Method used to update the value of the bunit attribute. |
source code
|
|
|
|
set_units(self,
units)
Method used to record what units were specified by the user for the
output product. |
source code
|
|
|
|
writeFITS(self,
template,
sciarr,
whtarr,
ctxarr=None,
versions=None,
extlist=('SCI', 'WHT', 'CTX'),
overwrite=True)
Generate PyFITS objects for each output extension using the file
given by 'template' for populating headers. |
source code
|
|
|
|
addPhotKeywords(self,
hdr,
phdr)
Insure that this header contains all the necessary photometry
keywords, moving them into the extension header if necessary. |
source code
|
|
|
|
addDrizKeywords(self,
hdr,
versions)
Add drizzle parameter keywords to header. |
source code
|
|