DetectAndMeasureScoreTask#

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

Bases: DetectAndMeasureTask

Detect DIA sources using a score image, and measure the detections on the difference image.

Source detection is run on the supplied score, or maximum likelihood, image. Note that no additional convolution will be done in this case. Close positive and negative detections will optionally be merged into dipole diaSources. Sky sources, or forced detections in background regions, will optionally be added, and the configured measurement algorithm will be run on all detections.

Methods Summary

run(science, matchedTemplate, difference, ...)

Detect and measure sources on a score image.

Methods Documentation

run(science, matchedTemplate, difference, scoreExposure, kernelSources, idFactory=None)#

Detect and measure sources on a score image.

Parameters#

sciencelsst.afw.image.ExposureF

Science exposure that the template was subtracted from.

matchedTemplatelsst.afw.image.ExposureF

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

differencelsst.afw.image.ExposureF

Result of subtracting template from the science image.

scoreExposurelsst.afw.image.ExposureF

Score or maximum likelihood difference image

kernelSourceslsst.afw.table.SourceCatalog

Final selection of sources that was used for psf matching.

idFactorylsst.afw.table.IdFactory, optional

Generator object used to assign ids to detected sources in the difference image. Ids from this generator are not set until after deblending and merging positive/negative peaks.

Returns#

measurementResults : lsst.pipe.base.Struct

subtractedMeasuredExposurelsst.afw.image.ExposureF

Subtracted exposure with detection mask applied.

diaSourceslsst.afw.table.SourceCatalog

The catalog of detected sources.