LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | getInputSchema |
def | __init__ |
def | run |
def | readCatalog |
def | mergeCatalogs |
def | write |
def | writeMetadata |
Static Public Attributes | |
ConfigClass = MergeSourcesConfig | |
RunnerClass = MergeSourcesRunner | |
inputDataset = None | |
outputDataset = None | |
getSchemaCatalogs = None | |
Private Member Functions | |
def | _makeArgumentParser |
Static Private Attributes | |
_DefaultName = None | |
A base class for merging source catalogs Merging detections (MergeDetectionsTask) and merging measurements (MergeMeasurementsTask) are currently so similar that it makes sense to re-use the code, in the form of this abstract base class. Sub-classes should set the following class variables: * _DefaultName: name of Task * inputDataset: name of dataset to read * outputDataset: name of dataset to write * getSchemaCatalogs to the output of _makeGetSchemaCatalogs(outputDataset) In addition, sub-classes must implement the mergeCatalogs method.
Definition at line 242 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.__init__ | ( | self, | |
butler = None , |
|||
schema = None , |
|||
kwargs | |||
) |
Initialize the task. Keyword arguments (in addition to those forwarded to CmdLineTask.__init__): - schema: the schema of the detection catalogs used as input to this one - butler: a butler used to read the input schema from disk, if schema is None Derived classes should use the getInputSchema() method to handle the additional arguments and retreive the actual input schema.
Definition at line 285 of file multiBand.py.
|
private |
Create a suitable ArgumentParser We will use the ArgumentParser to get a provide a list of data references for patches; the RunnerClass will sort them into lists of data references for the same patch
Definition at line 265 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.getInputSchema | ( | self, | |
butler = None , |
|||
schema = None |
|||
) |
def lsst.pipe.tasks.multiBand.MergeSourcesTask.mergeCatalogs | ( | self, | |
catalogs, | |||
patchRef | |||
) |
Merge multiple catalogs catalogs: dict mapping filter name to source catalog Returns: merged catalog
Definition at line 317 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.readCatalog | ( | self, | |
patchRef | |||
) |
Read input catalog We read the input dataset provided by the 'inputDataset' class variable.
Definition at line 306 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.run | ( | self, | |
patchRefList | |||
) |
Merge coadd sources from multiple bands patchRefList: list of patch data reference for each filter
Definition at line 297 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.write | ( | self, | |
patchRef, | |||
catalog | |||
) |
Write the output We write as the dataset provided by the 'outputDataset' class variable.
Definition at line 326 of file multiBand.py.
def lsst.pipe.tasks.multiBand.MergeSourcesTask.writeMetadata | ( | self, | |
dataRefList | |||
) |
No metadata to write, and not sure how to write it for a list of dataRefs
Definition at line 339 of file multiBand.py.
|
staticprivate |
Definition at line 257 of file multiBand.py.
|
static |
Definition at line 258 of file multiBand.py.
|
static |
Definition at line 262 of file multiBand.py.
|
static |
Definition at line 260 of file multiBand.py.
|
static |
Definition at line 261 of file multiBand.py.
|
static |
Definition at line 259 of file multiBand.py.