SsSingleFrameAssociationTask#
- class lsst.ap.association.SsSingleFrameAssociationTask(initInputs=None, **kwargs)#
Bases:
PipelineTaskTask for loading, associating and storing Difference Image Analysis (DIA) Objects and Sources.
Methods Summary
run(exposure, sourceTable, band[, ...])Process DiaSources and DiaObjects.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- run(exposure, sourceTable, band, solarSystemObjectTable=None)#
Process DiaSources and DiaObjects.
Load previous DiaObjects and their DiaSource history. Calibrate the values in the diaSourceCat. Associate new DiaSources with previous DiaObjects. Run forced photometry at the updated DiaObject locations. Store the results in the Alert Production Database (Apdb).
Parameters#
- exposure
lsst.afw.image.ExposureF Calibrated exposure with wcs and midpoint time.
- sourceTable
lsst.afw.table.SourceCatalog Newly detected sources.
- band
str The band in which the new DiaSources were detected.
- solarSystemObjectTable
astropy.table.TableorNone Preloaded Solar System objects expected to be visible in the image.
Returns#
- results
lsst.pipe.base.Struct Results struct with components. -
ssoAssocDiaSources: DiaSources that were associated withsolar system objects in this visit. (
Astropy.table.Table)unAssocDiaSources: Set of DiaSources that were not associated with any solar system object. (astropy.table.Table)nTotalSsObjects: Total number of SolarSystemObjects contained in the CCD footprint. (int)nAssociatedSsObjects: Number of SolarSystemObjects that were associated with DiaSources.ssSourceData: ssSource table data. (Astropy.table.Table)
Raises#
- RuntimeError
Raised if duplicate DiaObjects or duplicate DiaSources are found.
- 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