resample step has the following optional arguments that control
the behavior of the processing and the characteristics of the resampled
The fraction by which input pixels are “shrunk” before being drizzled onto the output image grid, given as a real number between 0 and 1.
The form of the kernel function used to distribute flux onto the output image. Available kernels are
Ratio of input to output pixel scale. A value of 0.5 means the output image would have 4 pixels sampling each input pixel. Ignored when
Absolute pixel scale in
arcsec. When provided, overrides
Position angle of output image’s Y-axis relative to North. A value of 0.0 would orient the final output image to be North up. The default of
Nonespecifies that the images will not be rotated, but will instead be resampled in the default orientation for the camera with the x and y axes of the resampled image corresponding approximately to the detector axes. Ignored when
--output_shape(tuple of int, default=None)
Shape of the image (data array) using “standard”
nysecond (as opposite to the
nxsecond). This value will be assigned to
array_shapeproperties of the returned WCS object. When supplied from command line, it should be a comma-separated list of integers
--crpix(tuple of float, default=None)
Position of the reference pixel in the image array in the
x, yorder. If
crpixis not specified, it will be set to the center of the bounding box of the returned WCS object. When supplied from command line, it should be a comma-separated list of floats.
--crval(tuple of float, default=None)
Right ascension and declination of the reference pixel. Automatically computed if not provided. When supplied from command line, it should be a comma-separated list of floats.
The value to assign to output pixels that have zero weight or do not receive any flux from any input pixels during drizzling.
The weighting type for each input image. If
weight_type=ivm(the default), the scaling value will be determined per-pixel using the inverse of the read noise (VAR_RNOISE) array stored in each input image. If the VAR_RNOISE array does not exist, the variance is set to 1 for all pixels (equal weighting). If
weight_type=exptime, the scaling value will be set equal to the exposure time found in the image header.
Blend metadata from all input images into the resampled output image.
Specifies the fractional amount of free memory to allow when creating the resampled image. If
None, the environment variable
DMODEL_ALLOWED_MEMORYis used. If not defined, no check is made. If the resampled image would be larger than specified, an
OutputTooLargeErrorexception will be generated.
For example, if set to
0.5, only resampled images that use less than half the available memory can be created.