lsst.pipe.tasks  21.0.0-40-gd3a68701+d6de81238f
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 = WriteSourceTableConfig
 

Detailed Description

Write source table to parquet

Definition at line 214 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 250 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 229 of file postprocess.py.

◆ runDataRef()

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

Definition at line 220 of file postprocess.py.

◆ writeMetadata()

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

Definition at line 303 of file postprocess.py.

Member Data Documentation

◆ ConfigClass

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

Definition at line 218 of file postprocess.py.


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