DetectCoaddSourcesTask#
- class lsst.pipe.tasks.multiBand.DetectCoaddSourcesTask(schema=None, **kwargs)#
Bases:
PipelineTaskDetect sources on a single filter coadd.
Coadding individual visits requires each exposure to be warped. This introduces covariance in the noise properties across pixels. Before detection, we correct the coadd variance by scaling the variance plane in the coadd to match the observed variance. This is an approximate approach – strictly, we should propagate the full covariance matrix – but it is simple and works well in practice.
After scaling the variance plane, we detect sources and generate footprints by delegating to the @ref SourceDetectionTask_ “detection” subtask.
DetectCoaddSourcesTask is meant to be run after assembling a coadded image in a given band. The purpose of the task is to update the background, detect all sources in a single band and generate a set of parent footprints. Subsequent tasks in the multi-band processing procedure will merge sources across bands and, eventually, perform forced photometry.
Parameters#
- schema
lsst.afw.table.Schema, optional Initial schema for the output catalog, modified-in place to include all fields set by this task. If None, the source minimal schema will be used.
- **kwargs
Additional keyword arguments.
Methods Summary
run(exposure, idFactory, expId[, patchInfo])Run detection on an exposure.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- run(exposure, idFactory, expId, patchInfo=None)#
Run detection on an exposure.
First scale the variance plane to match the observed variance using
ScaleVarianceTask. Then invoke theSourceDetectionTask_“detection” subtask to detect sources.Parameters#
- exposure
lsst.afw.image.Exposure Exposure on which to detect (may be background-subtracted and scaled, depending on configuration).
- idFactory
lsst.afw.table.IdFactory IdFactory to set source identifiers.
- expId
int Exposure identifier (integer) for RNG seed.
- patchInfo
lsst.skymap.PatchInfo, optional Description of the patch geometry. Only needed if
forceExactBinningisTrue.
Returns#
- result
lsst.pipe.base.Struct Results as a struct with attributes:
sourcesCatalog of detections (
lsst.afw.table.SourceCatalog).backgroundsList of backgrounds (
list).
- exposure
- runQuantum(butlerQC, inputRefs, outputRefs)#
Do butler IO and transform to provide in memory objects for tasks
runmethod.Parameters#
- butlerQC
QuantumContext A butler which is specialized to operate in the context of a
lsst.daf.butler.Quantum.- inputRefs
InputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined input/prerequisite connections.- outputRefs
OutputQuantizedConnection Datastructure whose attribute names are the names that identify connections defined in corresponding
PipelineTaskConnectionsclass. The values of these attributes are thelsst.daf.butler.DatasetRefobjects associated with the defined output connections.
- butlerQC
- schema