WriteObjectTableTask#
- class lsst.pipe.tasks.postprocess.WriteObjectTableTask(*, config: PipelineTaskConfig | None = None, log: logging.Logger | LsstLogAdapter | None = None, initInputs: dict[str, Any] | None = None, **kwargs: Any)#
Bases:
PipelineTaskWrite filter-merged object tables as a DataFrame in parquet format.
Attributes Summary
Methods Summary
run(catalogs, tract, patch)Merge multiple catalogs.
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Attributes Documentation
- outputDataset = 'obj'#
Methods Documentation
- run(catalogs, tract, patch)#
Merge multiple catalogs.
Parameters#
- catalogs
dict Mapping from filter names to dict of catalogs.
- tractint
tractId to use for the tractId column.
- patchstr
patchId to use for the patchId column.
Returns#
- catalog
pandas.DataFrame Merged dataframe.
Raises#
- ValueError
Raised if any of the catalogs is of an unsupported type.
- catalogs
- 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