DecorrelateALKernelSpatialTask#
- class lsst.ip.diffim.DecorrelateALKernelSpatialTask(*args, **kwargs)#
Bases:
TaskDecorrelate the effect of convolution by Alard-Lupton matching kernel in image difference
Methods Summary
computeVarianceMean(exposure)Compute the mean of the variance plane of
exposure.run(scienceExposure, templateExposure, ...)Perform decorrelation of an image difference exposure.
Methods Documentation
- computeVarianceMean(exposure)#
Compute the mean of the variance plane of
exposure.
- run(scienceExposure, templateExposure, subtractedExposure, psfMatchingKernel, spatiallyVarying=True, preConvKernel=None, templateMatched=True, preConvMode=False)#
Perform decorrelation of an image difference exposure.
Decorrelates the diffim due to the convolution of the templateExposure with the A&L psfMatchingKernel. If
spatiallyVaryingis True, it utilizes the spatially varying matching kernel via theimageMapReduceframework to perform spatially-varying decorrelation on a grid of subExposures.Parameters#
- scienceExposure
lsst.afw.image.Exposure the science Exposure used for PSF matching
- templateExposure
lsst.afw.image.Exposure the template Exposure used for PSF matching
- subtractedExposure
lsst.afw.image.Exposure the subtracted Exposure produced by
ip_diffim.ImagePsfMatchTask.subtractExposures()- psfMatchingKernelan (optionally spatially-varying) PSF matching kernel produced
by
ip_diffim.ImagePsfMatchTask.subtractExposures()- spatiallyVarying
bool if True, perform the spatially-varying operation
- preConvKernel
lsst.meas.algorithms.Psf if not none, the scienceExposure has been pre-filtered with this kernel. (Currently this option is experimental.)
- templateMatched
bool, optional If True, the template exposure was matched (convolved) to the science exposure.
- preConvMode
bool, optional If True,
subtractedExposureis assumed to be a likelihood difference image and will be noise corrected as a likelihood image.
Returns#
- results
lsst.pipe.base.Struct a structure containing: -
correctedExposure: the decorrelated diffim
- scienceExposure