Image Resampling

A module that manages resampling of images onto a common output frame and also “inverse” blotting.

Author

Mihai Cara (for help, contact HST Help Desk)

License

LICENSE

class subpixal.resample.Resample(config=None, **kwargs)[source]

An abstract class providing interface for resampling and combining sets of images onto a rectified frame.

property computed_sky
abstract execute(self)[source]

Run resampling algorithm.

abstract fast_add_image(self, add_file_name)[source]

Re-calculate resampled image using all input images and adding another image to the list of input images specified by the add_file_name parameter.

Parameters
add_file_namestr

File name of the image to be added to the input image list when re-calculating the resampled image.

abstract fast_drop_image(self, drop_file_name)[source]

Re-calculate resampled image using all input images other than the one specified by drop_file_name.

Parameters
drop_file_namestr

File name of the image to be dropped from the list of input images when re-calculating the resampled image.

property input_image_names

Get an OrderedDict of input file names and image extensions or None.

property output_crclean

Get file names of the Cosmic Ray (CR) cleaned images (if any).

property output_ctx

Get output file name for context data file or None.

property output_sci

Get output file name for output science image or None.

property output_wht

Get output file name for output weight image or None.

abstract property reference_image

Get/Set Reference image. When reference_image is None, output WCS and grid are computed automatically.

abstract set_config_parameters(self, **kwargs)[source]

Override individual configuration parameters.

class subpixal.resample.Drizzle(config=None, **kwargs)[source]
execute(self)[source]

Run resampling algorithm.

fast_add_image(self, add_file_name)[source]

Re-calculate resampled image using all input images and adding another image to the list of input images specified by the add_file_name parameter.

Parameters
add_file_namestr

File name of the image to be added to the input image list when re-calculating the resampled image.

fast_drop_image(self, drop_file_name)[source]

Re-calculate resampled image using all input images other than the one specified by drop_file_name.

Parameters
drop_file_namestr

File name of the image to be dropped from the list of input images when re-calculating the resampled image.

fast_replace_image(self, drop_file_name, add_file_name)[source]

Re-calculate resampled image using all input images and adding another image to the list of input images specified by the add_file_name parameter.

Parameters
add_file_namestr

File name of the image to be added to the input image list when re-calculating the resampled image.

property reference_image

Get/Set Reference image. When reference_image is None, output WCS and grid are computed automatically.

set_config(self, config=None, **kwargs)[source]
set_config_parameters(self, **kwargs)[source]

Override individual configuration parameters.

taskname = 'astrodrizzle'