DetectAndMeasureScoreTask#
- class lsst.ip.diffim.DetectAndMeasureScoreTask(**kwargs)#
Bases:
DetectAndMeasureTaskDetect 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, measurementResults=None)#
Detect and measure sources on a score image.
Parameters#
- science
lsst.afw.image.ExposureF Science exposure that the template was subtracted from.
- matchedTemplate
lsst.afw.image.ExposureF Warped and PSF-matched template that was used produce the difference image.
- difference
lsst.afw.image.ExposureF Result of subtracting template from the science image.
- scoreExposure
lsst.afw.image.ExposureF Score or maximum likelihood difference image
- kernelSources
lsst.afw.table.SourceCatalog Final selection of sources that was used for psf matching.
- idFactory
lsst.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.
- measurementResults
lsst.pipe.base.Struct, optional Result struct that is modified to allow saving of partial outputs for some failure conditions. If the task completes successfully, this is also returned.
Returns#
measurementResults :
lsst.pipe.base.StructsubtractedMeasuredExposurelsst.afw.image.ExposureFSubtracted exposure with detection mask applied.
scoreMeasuredExposurelsst.afw.image.ExposureFScore exposure with detection mask applied.
diaSourceslsst.afw.table.SourceCatalogThe catalog of detected sources.
differenceBackgroundlsst.afw.math.BackgroundListBackground that was subtracted from the difference image.
- science