ForcedPhotCoaddTask#
- class lsst.drp.tasks.forcedPhotCoadd.ForcedPhotCoaddTask(refSchema=None, initInputs=None, **kwds)#
Bases:
PipelineTaskA pipeline task for performing forced measurement on coadd images.
Parameters#
- refSchema
lsst.afw.table.Schema, optional The schema of the reference catalog, passed to the constructor of the references subtask. Optional, but must be specified if
initInputsis not; if both are specified,initInputstakes precedence.- initInputs
dict Dictionary that can contain a key
inputSchemacontaining the schema. If present will override the value ofrefSchema.- **kwds
Keyword arguments are passed to the supertask constructor.
Attributes Summary
Methods Summary
generateMeasCat(dataId, exposure, refCat, ...)Generate a measurement catalog.
run(measCat, exposure, refCat, refWcs[, ...])Perform forced measurement on a single exposure.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Attributes Documentation
- dataPrefix = 'deepCoadd_'#
Methods Documentation
- generateMeasCat(dataId, exposure, refCat, refCatInBand, refWcs, footprintData)#
Generate a measurement catalog.
Parameters#
- dataId
lsst.daf.butler.DataCoordinate Butler data ID for this image, with
{tract, patch, band}keys.- exposure
lsst.afw.image.exposure.Exposure Exposure to generate the catalog for.
- refCat
lsst.afw.table.SourceCatalog Catalog of shapes and positions at which to force photometry.
- refCatInBand
lsst.afw.table.SourceCatalog Catalog of shapes and position in the band forced photometry is currently being performed
- refWcs
lsst.afw.image.SkyWcs Reference world coordinate system.
- footprintData
ScarletDataModelorlsst.afw.table.SourceCatalog Either the scarlet data models or the deblended catalog containings footprints. If
footprintDataisNonethen the footprints contained inrefCatInBandare used.
Returns#
- measCat
lsst.afw.table.SourceCatalog Catalog of forced sources to measure.
- expId
int Unique binary id associated with the input exposure
Raises#
- LookupError
Raised if a footprint with a given source id was in the reference catalog but not in the reference catalog in band (meaning there was some sort of mismatch in the two input catalogs)
- dataId
- run(measCat, exposure, refCat, refWcs, exposureId=None, apCorrMap=None)#
Perform forced measurement on a single exposure.
Parameters#
- measCat
lsst.afw.table.SourceCatalog The measurement catalog, based on the sources listed in the reference catalog.
- exposure
lsst.afw.image.Exposure The measurement image upon which to perform forced detection.
- refCat
lsst.afw.table.SourceCatalog The reference catalog of sources to measure.
- refWcs
lsst.afw.image.SkyWcs The WCS for the references.
- exposureId
int Optional unique exposureId used for random seed in measurement task.
- apCorrMap
ApCorrMap, optional Aperture correction map to use for aperture corrections. If not provided, the map is read from the exposure.
Returns#
- result~`lsst.pipe.base.Struct`
Structure with fields:
measCatCatalog of forced measurement results (
lsst.afw.table.SourceCatalog).
- measCat
- 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
- refSchema