AlardLuptonPreconvolveSubtractTask#
- class lsst.ip.diffim.AlardLuptonPreconvolveSubtractTask(**kwargs)#
Bases:
AlardLuptonSubtractTaskSubtract a template from a science image, convolving the science image before computing the kernel, and also convolving the template before subtraction.
Methods Summary
run(template, science, sources[, visitSummary])Preconvolve the science image with its own PSF, convolve the template image with a PSF-matching kernel and subtract from the preconvolved science image.
runPreconvolve(template, science, ...)Convolve the science image with its own PSF, then convolve the template with a matching kernel and subtract to form the Score exposure.
Methods Documentation
- run(template, science, sources, visitSummary=None)#
Preconvolve the science image with its own PSF, convolve the template image with a PSF-matching kernel and subtract from the preconvolved science image.
Parameters#
- template
lsst.afw.image.ExposureF The template image, which has previously been warped to the science image. The template bbox will be padded by a few pixels compared to the science bbox.
- science
lsst.afw.image.ExposureF The science exposure.
- sources
lsst.afw.table.SourceCatalog Identified sources on the science exposure. This catalog is used to select sources in order to perform the AL PSF matching on stamp images around them.
- visitSummary
lsst.afw.table.ExposureCatalog, optional Exposure catalog with complete external calibrations. Catalog uses the detector id for the catalog id, sorted on id for fast lookup.
Returns#
- results
lsst.pipe.base.Struct scoreExposurelsst.afw.image.ExposureFResult of subtracting the convolved template and science images. Attached PSF is that of the original science image.
matchedTemplatelsst.afw.image.ExposureFWarped and PSF-matched template exposure. Attached PSF is that of the original science image.
matchedSciencelsst.afw.image.ExposureFThe science exposure after convolving with its own PSF. Attached PSF is that of the original science image.
backgroundModellsst.afw.math.Function2DBackground model that was fit while solving for the PSF-matching kernel
psfMatchingKernellsst.afw.math.KernelFinal kernel used to PSF-match the template to the science image.
- template
- runPreconvolve(template, science, matchedScience, kernelSources, preConvKernel)#
Convolve the science image with its own PSF, then convolve the template with a matching kernel and subtract to form the Score exposure.
Parameters#
- template
lsst.afw.image.ExposureF Template exposure, warped to match the science exposure.
- science
lsst.afw.image.ExposureF Science exposure to subtract from the template.
- matchedScience
lsst.afw.image.ExposureF The science exposure, convolved with the reflection of its own PSF.
- kernelSources
lsst.afw.table.SourceCatalog Identified sources on the science exposure. This catalog is used to select sources in order to perform the AL PSF matching on stamp images around them.
- preConvKernel
lsst.afw.math.Kernel The reflection of the kernel that was used to preconvolve the
scienceexposure. Must be normalized to sum to 1.
Returns#
results :
lsst.pipe.base.StructscoreExposurelsst.afw.image.ExposureFResult of subtracting the convolved template and science images. Attached PSF is that of the original science image.
matchedTemplatelsst.afw.image.ExposureFWarped and PSF-matched template exposure. Attached PSF is that of the original science image.
matchedSciencelsst.afw.image.ExposureFThe science exposure after convolving with its own PSF. Attached PSF is that of the original science image.
backgroundModellsst.afw.math.Function2DBackground model that was fit while solving for the PSF-matching kernel
psfMatchingKernellsst.afw.math.KernelFinal kernel used to PSF-match the template to the science image.
- template