SpatiallySampledMetricsTask#

class lsst.ip.diffim.SpatiallySampledMetricsTask(**kwargs)#

Bases: PipelineTask

Detect and measure sources on a difference image.

Methods Summary

run(science, template, difference, ...)

Calculate difference image metrics on specific locations across the images

runQuantum(butlerQC, inputRefs, outputRefs)

Do butler IO and transform to provide in memory objects for tasks run method.

Methods Documentation

run(science, template, difference, diaSources, psfMatchingKernel)#

Calculate difference image metrics on specific locations across the images

Parameters#

sciencelsst.afw.image.ExposureF

Science exposure that the template was subtracted from.

templatelsst.afw.image.ExposureF

Warped and non PSF-matched template that was used produce the difference image.

differencelsst.afw.image.ExposureF

Result of subtracting template from the science image.

diaSourceslsst.afw.table.SourceCatalog

The catalog of detected sources.

psfMatchingKernelLinearCombinationKernel

The PSF matching kernel of the subtraction to evaluate.

Returns#

resultslsst.pipe.base.Struct
spatiallySampledMetricsastropy.table.Table

Image quality metrics spatially sampled locations.

runQuantum(butlerQC, inputRefs, outputRefs)#

Do butler IO and transform to provide in memory objects for tasks run method.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.