ConsolidateInjectedCatalogsTask#
- class lsst.source.injection.ConsolidateInjectedCatalogsTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskClass for combining all tables in a collection of input catalogs into one table.
Methods Summary
run(catalog_dict, skymap, tract)Consolidate all tables in catalog_dict into one table.
runQuantum(butlerQC, input_refs, output_refs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Methods Documentation
- run(catalog_dict: dict, skymap: BaseSkyMap, tract: int) Table#
Consolidate all tables in catalog_dict into one table.
- catalog_dict:
dict A dictionary with photometric bands for keys and astropy tables for items.
- skymap:
lsst.skymap.BaseSkyMap A base skymap.
- tract:
int The tract where sources have been injected.
Returns#
- output_struct
lsst.pipe.base.Struct - contains :
- multiband_catalog:
astropy.table.Table A single table containing all information of the separate tables in catalog_dict
- multiband_catalog:
- catalog_dict:
- runQuantum(butlerQC, input_refs, output_refs)#
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