TransformObjectCatalogTask#

class lsst.pipe.tasks.postprocess.TransformObjectCatalogTask(*args, **kwargs)#

Bases: TransformCatalogBaseTask

Produce 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 input deepCoadd_obj table. 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 run method.

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 DeferredDatasetHandle or InMemoryDatasetHandle or DataFrame object and dataId, returns a dataframe with results of postprocessing calculations.

Parameters#

handlesDeferredDatasetHandle or

InMemoryDatasetHandle or DataFrame, or list of these.

DataFrames from which calculations are done.

funcsFunctor

Functors to apply to the table’s columns

dataIddict, optional

Used to add a patchId column to the output dataframe.

bandstr, optional

Filter band that is being processed.

Returns#

resultlsst.pipe.base.Struct

Result struct, with a single outputCatalog attribute holding the transformed catalog.

runQuantum(butlerQC, inputRefs, outputRefs)#

Do butler IO and transform to provide in memory objects for tasks run method.

Parameters#

butlerQCQuantumContext

A butler which is specialized to operate in the context of a lsst.daf.butler.Quantum.

inputRefsInputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined input/prerequisite connections.

outputRefsOutputQuantizedConnection

Datastructure whose attribute names are the names that identify connections defined in corresponding PipelineTaskConnections class. The values of these attributes are the lsst.daf.butler.DatasetRef objects associated with the defined output connections.