ModelPsfMatchTask#
- class lsst.ip.diffim.ModelPsfMatchTask(*args, **kwargs)#
Bases:
PsfMatchTaskMatch two model Psfs, and application of the Psf-matching kernel to an input Exposure.
Methods Summary
run(exposure, referencePsfModel[, kernelSum])Psf-match an exposure to a model Psf.
Methods Documentation
- run(exposure, referencePsfModel, kernelSum=1.0)#
Psf-match an exposure to a model Psf.
Parameters#
- exposure
lsst.afw.image.Exposure Exposure to Psf-match to the reference Psf model; it must return a valid PSF model via exposure.getPsf()
- referencePsfModel
lsst.afw.detection.Psf The Psf model to match to
- kernelSum
float, optional A multipicative factor to apply to the kernel sum (default=1.0)
Returns#
- result
struct psfMatchedExposurethe Psf-matched Exposure.This has the same parent bbox, Wcs, PhotoCalib and Filter as the input Exposure but no Psf. In theory the Psf should equal referencePsfModel but the match is likely not exact.
psfMatchingKernel: the spatially varying Psf-matching kernelkernelCellSet: SpatialCellSet used to solve for the Psf-matching kernelreferencePsfModel: Validated and/or modified reference model used
Raises#
- RuntimeError
if the Exposure does not contain a Psf model
- exposure