|
def | __init__ (self, butler=None, schema=None, **kwargs) |
|
def | runDataRef (self, patchRefList) |
| Merge coadd sources from multiple bands. More...
|
|
def | readCatalog (self, patchRef) |
|
def | run (self, catalogs, tract, patch) |
|
def | write (self, patchRef, catalog) |
|
def | writeMetadata (self, dataRefList) |
|
Write filter-merged source tables to parquet
Definition at line 75 of file postprocess.py.
◆ __init__()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.__init__ |
( |
|
self, |
|
|
|
butler = None , |
|
|
|
schema = None , |
|
|
** |
kwargs |
|
) |
| |
◆ readCatalog()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.readCatalog |
( |
|
self, |
|
|
|
patchRef |
|
) |
| |
Read input catalogs
Read all the input datasets given by the 'inputDatasets'
attribute.
Parameters
----------
patchRef : `lsst.daf.persistence.ButlerDataRef`
Data reference for patch
Returns
-------
Tuple consisting of filter name and a dict of catalogs, keyed by
dataset name
Definition at line 118 of file postprocess.py.
◆ run()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.run |
( |
|
self, |
|
|
|
catalogs, |
|
|
|
tract, |
|
|
|
patch |
|
) |
| |
Merge multiple catalogs.
Parameters
----------
catalogs : `dict`
Mapping from filter names to dict of catalogs.
tract : int
tractId to use for the tractId column
patch : str
patchId to use for the patchId column
Returns
-------
catalog : `lsst.pipe.tasks.parquetTable.ParquetTable`
Merged dataframe, with each column prefixed by
`filter_tag(filt)`, wrapped in the parquet writer shim class.
Definition at line 143 of file postprocess.py.
◆ runDataRef()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.runDataRef |
( |
|
self, |
|
|
|
patchRefList |
|
) |
| |
Merge coadd sources from multiple bands.
Calls run
which must be defined in subclasses that inherit from MergeSourcesTask.
- Parameters
-
[in] | patchRefList | list of data references for each filter |
Definition at line 94 of file postprocess.py.
◆ write()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.write |
( |
|
self, |
|
|
|
patchRef, |
|
|
|
catalog |
|
) |
| |
Write the output.
Parameters
----------
catalog : `ParquetTable`
Catalog to write
patchRef : `lsst.daf.persistence.ButlerDataRef`
Data reference for patch
Definition at line 181 of file postprocess.py.
◆ writeMetadata()
def lsst.pipe.tasks.postprocess.WriteObjectTableTask.writeMetadata |
( |
|
self, |
|
|
|
dataRefList |
|
) |
| |
No metadata to write, and not sure how to write it for a list of dataRefs.
Definition at line 198 of file postprocess.py.
◆ ConfigClass
lsst.pipe.tasks.postprocess.WriteObjectTableTask.ConfigClass |
|
static |
◆ inputDatasets
lsst.pipe.tasks.postprocess.WriteObjectTableTask.inputDatasets |
|
static |
◆ outputDataset
lsst.pipe.tasks.postprocess.WriteObjectTableTask.outputDataset |
|
static |
◆ RunnerClass
lsst.pipe.tasks.postprocess.WriteObjectTableTask.RunnerClass |
|
static |
The documentation for this class was generated from the following file: