WriteRecalibratedSourceTableTask#
- class lsst.pipe.tasks.postprocess.WriteRecalibratedSourceTableTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
WriteSourceTableTaskWrite source table to DataFrame Parquet format.
Methods Summary
addCalibColumns(catalog, exposure, **kwargs)Add replace columns with calibs evaluated at each centroid
prepareCalibratedExposure(exposure, detectorId)Prepare a calibrated exposure and apply external calibrations if so configured.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- addCalibColumns(catalog, exposure, **kwargs)#
Add replace columns with calibs evaluated at each centroid
Add or replace ‘base_LocalWcs’ and ‘base_LocalPhotoCalib’ columns in a source catalog, by rerunning the plugins.
Parameters#
- catalog
lsst.afw.table.SourceCatalog catalog to which calib columns will be added
- exposure
lsst.afw.image.exposure.Exposure Exposure with attached PhotoCalibs and SkyWcs attributes to be reevaluated at local centroids. Pixels are not required.
- **kwargs
Additional keyword arguments are ignored to facilitate passing the same arguments to several methods.
Returns#
- newCat:
lsst.afw.table.SourceCatalog Source Catalog with requested local calib columns
- catalog
- prepareCalibratedExposure(exposure, detectorId, visitSummary=None)#
Prepare a calibrated exposure and apply external calibrations if so configured.
Parameters#
- exposure
lsst.afw.image.exposure.Exposure Input exposure to adjust calibrations. May be an empty Exposure.
- detectorId
int Detector ID associated with the exposure.
- visitSummary
lsst.afw.table.ExposureCatalog, optional Exposure catalog with all calibration objects. WCS and PhotoCalib are always applied if
visitSummaryis provided and those components are notNone.
Returns#
- exposure
lsst.afw.image.exposure.Exposure Exposure with adjusted calibrations.
- 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