lsst.pipe.tasks  21.0.0-12-gb58d4cc3+0fdaeca7f2
Public Member Functions | Static Public Attributes | List of all members
lsst.pipe.tasks.postprocess.WriteSourceTableTask Class Reference
Inheritance diagram for lsst.pipe.tasks.postprocess.WriteSourceTableTask:

Public Member Functions

def runDataRef (self, dataRef)
 
def run (self, catalog, ccdVisitId=None)
 
def addCalibColumns (self, catalog, dataRef)
 
def writeMetadata (self, dataRef)
 

Static Public Attributes

 ConfigClass
 

Detailed Description

Write source table to parquet

Definition at line 224 of file postprocess.py.

Member Function Documentation

◆ addCalibColumns()

def lsst.pipe.tasks.postprocess.WriteSourceTableTask.addCalibColumns (   self,
  catalog,
  dataRef 
)
Add columns with local calibration evaluated at each centroid

for backwards compatibility with old repos.
This exists for the purpose of converting old src catalogs
(which don't have the expected local calib columns) to Source Tables.

Parameters
----------
catalog: `afwTable.SourceCatalog`
    catalog to which calib columns will be added
dataRef: `lsst.daf.persistence.ButlerDataRef
    for fetching the calibs from disk.

Returns
-------
newCat:  `afwTable.SourceCatalog`
    Source Catalog with requested local calib columns

Definition at line 260 of file postprocess.py.

◆ run()

def lsst.pipe.tasks.postprocess.WriteSourceTableTask.run (   self,
  catalog,
  ccdVisitId = None 
)
Convert `src` catalog to parquet

Parameters
----------
catalog: `afwTable.SourceCatalog`
    catalog to be converted
ccdVisitId: `int`
    ccdVisitId to be added as a column

Returns
-------
result : `lsst.pipe.base.Struct`
    ``table``
`ParquetTable` version of the input catalog

Definition at line 239 of file postprocess.py.

◆ runDataRef()

def lsst.pipe.tasks.postprocess.WriteSourceTableTask.runDataRef (   self,
  dataRef 
)

Definition at line 230 of file postprocess.py.

◆ writeMetadata()

def lsst.pipe.tasks.postprocess.WriteSourceTableTask.writeMetadata (   self,
  dataRef 
)
No metadata to write.

Definition at line 313 of file postprocess.py.

Member Data Documentation

◆ ConfigClass

lsst.pipe.tasks.postprocess.WriteSourceTableTask.ConfigClass
static

Definition at line 228 of file postprocess.py.


The documentation for this class was generated from the following file: