Bases: object
Combine images using the drizzle algorithm
Create a new Drizzle output object and set the drizzle parameters.
All parameters are optional, but either infile or outwcs must be supplied. If infile initializes the object from a file written after a previous run of drizzle. Results from the previous run will be combined with new results. The value passed in outwcs will be ignored. If infile is not set, outwcs will be used to initilize a new run of drizzle.
Parameters: | infile : str, optional
outwcs : wcs, optional
wt_scl : str, optional
pixfrac : float, optional
kernel : str, optional
fillval : str, otional
|
---|
Methods Summary
add_fits_file(infile[, inweight, xmin, ...]) | Combine a fits file with the output drizzled image. |
add_image(insci, inwcs[, inwht, xmin, xmax, ...]) | Combine an input image with the output drizzled image. |
blot_fits_file(infile[, interp, sinscl]) | Resample the output using another image’s world coordinate system. |
blot_image(blotwcs[, interp, sinscl]) | Resample the output image using an input world coordinate system. |
write(outfile[, out_units, outheader]) | Write the output from a set of drizzled images to a file. |
Methods Documentation
Combine a fits file with the output drizzled image.
Parameters: | infile : str
inweight : str, otional
xmin : float, otional
xmax : float, otional
ymin : float, optional
ymax : float, optional
unitkey : string, optional
expkey : string, optional
wt_scl : float, optional
|
---|
Combine an input image with the output drizzled image.
Instead of reading the parameters from a fits file, you can set them by calling this lower level method. Add_fits_file calls this method after doing its setup.
Parameters: | insci : array
inwcs : wcs
inwht : array, optional
xmin : float, optional
xmax : float, optional
ymin : float, optional
ymax : float, optional
expin : float, optional
in_units : str, optional
wt_scl : float, optional
|
---|
Resample the output using another image’s world coordinate system.
Parameters: | infile : str
interp : str, optional
sincscl : float, optional
|
---|
Resample the output image using an input world coordinate system.
Parameters: | blotwcs : wcs
interp : str, optional
sincscl : float, optional
|
---|
Write the output from a set of drizzled images to a file.
The output file will contain three extensions. The “SCI” extension contains the resulting image. The “WHT” extension contains the combined weights. The “CTX” extension is a bit map. The nth bit is set to one if the nth input image contributed non-zero flux to the output image. The “CTX” image is three dimensionsional to account for the possibility that there are more than 32 input images.
Parameters: | outfile : str
out_units : str, optional
outheader : header, optional
|
---|