ModelPsfMatchTask#

class lsst.ip.diffim.ModelPsfMatchTask(*args, **kwargs)#

Bases: PsfMatchTask

Match 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#

exposurelsst.afw.image.Exposure

Exposure to Psf-match to the reference Psf model; it must return a valid PSF model via exposure.getPsf()

referencePsfModellsst.afw.detection.Psf

The Psf model to match to

kernelSumfloat, optional

A multipicative factor to apply to the kernel sum (default=1.0)

Returns#

resultstruct
  • 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 kernel

  • kernelCellSet : SpatialCellSet used to solve for the Psf-matching kernel

  • referencePsfModel : Validated and/or modified reference model used

Raises#

RuntimeError

if the Exposure does not contain a Psf model