TransformObjectCatalogTask#
- class lsst.pipe.tasks.postprocess.TransformObjectCatalogTask(*args, **kwargs)#
Bases:
TransformCatalogBaseTaskProduce a flattened Object Table to match the format specified in sdm_schemas.
Do the same set of postprocessing calculations on all bands.
This is identical to
TransformCatalogBaseTask, except for that it does the specified functor calculations for all filters present in the inputdeepCoadd_objtable. Any specific"filt"keywords specified by the YAML file will be superceded.Attributes Summary
Methods Summary
run(handle[, funcs, dataId, band])Do postprocessing calculations
runQuantum(butlerQC, inputRefs, outputRefs)Do butler IO and transform to provide in memory objects for tasks
runmethod.Attributes Documentation
- datasets_multiband = ('epoch', 'ref', 'Exp_multiprofit', 'Sersic_multiprofit')#
Methods Documentation
- run(handle, funcs=None, dataId=None, band=None, **kwargs)#
Do postprocessing calculations
Takes a
DeferredDatasetHandleorInMemoryDatasetHandleorDataFrameobject and dataId, returns a dataframe with results of postprocessing calculations.Parameters#
- handles
DeferredDatasetHandleor InMemoryDatasetHandleorDataFrame, or list of these.DataFrames from which calculations are done.
- funcs
Functor Functors to apply to the table’s columns
- dataIddict, optional
Used to add a
patchIdcolumn to the output dataframe.- band
str, optional Filter band that is being processed.
Returns#
- result
lsst.pipe.base.Struct Result struct, with a single
outputCatalogattribute holding the transformed catalog.
- handles
- 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