ForcedPhotCcdTask#
- class lsst.meas.base.ForcedPhotCcdTask(*args, **kwargs)#
Bases:
PipelineTaskA pipeline task for performing forced measurement on CCD 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.- **kwargs
Keyword arguments are passed to the supertask constructor.
Deprecated since version v29.0: This task is replaced by lsst.pipe.tasks.ForcedPhotCcdTask. This task will be removed after v30.
Attributes Summary
Methods Summary
attachFootprints(sources, refCat, exposure, ...)Attach footprints to blank sources prior to measurements.
generateMeasCat(dataId, exposure, refCat, refWcs)Generate a measurement catalog.
prepareCalibratedExposure(exposure[, ...])Prepare a calibrated exposure and apply external calibrations and sky corrections if so configured.
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 = ''#
Methods Documentation
- attachFootprints(sources, refCat, exposure, refWcs)#
Attach footprints to blank sources prior to measurements.
Notes#
Footprintobjects for forced photometry must be in the pixel coordinate system of the image being measured, while the actual detections may start out in a different coordinate system.Subclasses of this class may implement this method to define how those
Footprintobjects should be generated.This default implementation transforms depends on the
footprintSourceconfiguration parameter.
- generateMeasCat(dataId, exposure, refCat, refWcs)#
Generate a measurement catalog.
Parameters#
- dataId
lsst.daf.butler.DataCoordinate Butler data ID for this image, with
{visit, detector}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.
- refWcs
lsst.afw.image.SkyWcs Reference world coordinate system. This parameter is not currently used.
Returns#
- measCat
lsst.afw.table.SourceCatalog Catalog of forced sources to measure.
- expId
int Unique binary id associated with the input exposure
- dataId
- prepareCalibratedExposure(exposure, skyCorr=None, visitSummary=None)#
Prepare a calibrated exposure and apply external calibrations and sky corrections if so configured.
Parameters#
- exposure
lsst.afw.image.exposure.Exposure Input exposure to adjust calibrations.
- skyCorr
lsst.afw.math.backgroundList, optional Sky correction frame to apply if doApplySkyCorr=True.
- visitSummary
lsst.afw.table.ExposureCatalog, optional Exposure catalog with update calibrations; any not-None calibration objects attached will be used. These are applied first and may be overridden by other arguments.
Returns#
- exposure
lsst.afw.image.exposure.Exposure Exposure with adjusted calibrations.
- exposure
- run(measCat, exposure, refCat, refWcs, exposureId=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.
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