InterpolateOverDefectGaussianProcess#

class lsst.meas.algorithms.InterpolateOverDefectGaussianProcess(masked_image, defects=['SAT'], fwhm=5, bin_image=True, bin_spacing=10, threshold_dynamic_binning=1000, threshold_subdivide=20000, correlation_length_cut=5, log=None)#

Bases: object

InterpolateOverDefectGaussianProcess class performs Gaussian Process (GP) interpolation over defects in an image.

Parameters:#

masked_imagelsst.afw.image.MaskedImage

The masked image containing the defects to be interpolated.

defectslist`[`str], optional

The types of defects to be interpolated. Default is [“SAT”].

fwhmfloat, optional

The full width at half maximum (FWHM) of the PSF. Default is 5.

bin_spacingint, optional

The spacing between bins for good pixel binning. Default is 10.

threshold_dynamic_binningint, optional

The threshold for dynamic binning. Default is 1000.

threshold_subdivideint, optional

The threshold for sub-dividing the bad pixel array to avoid memory error. Default is 20000.

correlation_length_cutint, optional

The factor by which to dilate the bounding box around defects. Default is 5.

loglsst.log.Log, logging.Logger or None, optional

Logger object used to write out messages. If None a default logger will be used.

Methods Summary

interpolate_masked_sub_image(masked_sub_image)

Interpolate the masked sub-image.

run()

Interpolate over the defects in the image.

Methods Documentation

interpolate_masked_sub_image(masked_sub_image)#

Interpolate the masked sub-image.

Parameters:#

masked_sub_imagelsst.afw.image.MaskedImage

The sub-masked image to be interpolated.

Returns:#

lsst.afw.image.MaskedImage

The interpolated sub-masked image.

run()#

Interpolate over the defects in the image.

Change self.masked_image .