LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, datasetType, sourceKeyTuple) |
def | addSourceMetrics (self, repoInfo, idKeyTuple, idValList, sourceTableList) |
def | finalize (self) |
Public Attributes | |
datasetType | |
repoInfoList | |
sourceArr | |
sourceIdDict | |
repoArr | |
Accumulate a set of measurements from a set of source tables To use: - specify the desired source measurements when constructing this object - call addSourceMetrics for each repository you harvest data from - call finalize to produce the final data Data available after calling finalize: - self.sourceArr: a numpy structured array of shape (num repositories, num sources) containing named columns for: - source ID - each data ID key - each item of data extracted from the source table - self.sourceIdDict: a dict of (source ID: index of axis 1 of self.sourceArr) - self.repoArr: a numpy structured array of shape (num repositories,) containing a named column for each repository key (see RepositoryIterator) @note: sources that had non-finite data (e.g. NaN) for every value extracted are silently omitted
Definition at line 54 of file repositoryIterator.py.
def lsst.pipe.tasks.repositoryIterator.SourceData.__init__ | ( | self, | |
datasetType, | |||
sourceKeyTuple | |||
) |
@param[in] datasetType: dataset type for source @param[in] sourceKeyTuple: list of keys of data items to extract from the source tables @raise RuntimeError if sourceKeyTuple is empty
Definition at line 75 of file repositoryIterator.py.
def lsst.pipe.tasks.repositoryIterator.SourceData.addSourceMetrics | ( | self, | |
repoInfo, | |||
idKeyTuple, | |||
idValList, | |||
sourceTableList | |||
) |
Accumulate source measurements from a list of source tables. Once you have accumulated all source measurements, call finalize to process the data. @param[in] repoInfo: a RepositoryInfo instance @param[in] idKeyTuple: a tuple of data ID keys; must be the same for each call @param[in] idValList: a list of data ID value tuples; each tuple contains values in the order in idKeyTuple @param[in] sourceTableList: a list of source tables, one per entry in idValList @raise RuntimeError if idKeyTuple is different than it was for the first call. Accumulates the data in temporary cache self._tempDataList. @return number of sources
Definition at line 153 of file repositoryIterator.py.
def lsst.pipe.tasks.repositoryIterator.SourceData.finalize | ( | self | ) |
Process the accumulated source measurements to create the final data products. Only call this after you have added all source metrics using addSourceMetrics. Reads temporary cache self._tempDataList and then deletes it.
Definition at line 180 of file repositoryIterator.py.
lsst.pipe.tasks.repositoryIterator.SourceData.datasetType |
Definition at line 84 of file repositoryIterator.py.
lsst.pipe.tasks.repositoryIterator.SourceData.repoArr |
Definition at line 209 of file repositoryIterator.py.
lsst.pipe.tasks.repositoryIterator.SourceData.repoInfoList |
Definition at line 100 of file repositoryIterator.py.
lsst.pipe.tasks.repositoryIterator.SourceData.sourceArr |
Definition at line 202 of file repositoryIterator.py.
lsst.pipe.tasks.repositoryIterator.SourceData.sourceIdDict |
Definition at line 205 of file repositoryIterator.py.