lsst.meas.algorithms
14.0-9-g82279ae0+5
|
Class for both producing indexed reference catalogs and for loading them. More...
Public Member Functions | |
def | __init__ (self, args, kwargs) |
Constructor for the HTM indexing engine. More... | |
def | create_indexed_catalog (self, files) |
Index a set of files comprising a reference catalog. More... | |
def | get_catalog (self, dataId, schema) |
Get a catalog from the butler or create it if it doesn't exist. More... | |
def | make_schema (self, dtype) |
Make the schema to use in constructing the persisted catalogs. More... | |
Static Public Member Functions | |
def | compute_coord (row, ra_name, dec_name) |
Create a afwCoord object from a np.array row. More... | |
Public Attributes | |
butler | |
indexer | |
Static Public Attributes | |
bool | canMultiprocess = False |
ConfigClass = IngestIndexedReferenceConfig | |
RunnerClass = IngestReferenceRunner | |
Class for both producing indexed reference catalogs and for loading them.
This implements an indexing scheme based on hierarchical triangular mesh (HTM). The term index really means breaking the catalog into localized chunks called shards. In this case each shard contains the entries from the catalog in a single HTM trixel
Definition at line 139 of file ingestIndexReferenceTask.py.
def lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.__init__ | ( | self, | |
args, | |||
kwargs | |||
) |
Constructor for the HTM indexing engine.
[in] | butler | dafPersistence.Butler object for reading and writing catalogs |
Definition at line 164 of file ingestIndexReferenceTask.py.
|
static |
Create a afwCoord object from a np.array row.
[in] | row | dict like object with ra/dec info in degrees |
[in] | ra_name | name of RA key |
[in] | dec_name | name of Dec key |
[out] | IcrsCoord | object constructed from the RA/Dec values |
Definition at line 207 of file ingestIndexReferenceTask.py.
def lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.create_indexed_catalog | ( | self, | |
files | |||
) |
Index a set of files comprising a reference catalog.
Outputs are persisted in the data repository.
[in] | files | A list of file names to read. |
Definition at line 175 of file ingestIndexReferenceTask.py.
def lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.get_catalog | ( | self, | |
dataId, | |||
schema | |||
) |
Get a catalog from the butler or create it if it doesn't exist.
[in] | dataId | Identifier for catalog to retrieve |
[in] | schema | Schema to use in catalog creation if the butler can't get it |
[out] | afwTable.SourceCatalog | for the specified identifier |
Definition at line 284 of file ingestIndexReferenceTask.py.
def lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.make_schema | ( | self, | |
dtype | |||
) |
Make the schema to use in constructing the persisted catalogs.
[in] | dtype | A np.dtype to use in constructing the schema |
[out] | The | schema for the output source catalog. |
[out] | A | map of catalog keys to use in filling the record |
Definition at line 295 of file ingestIndexReferenceTask.py.
lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.butler |
Definition at line 169 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 147 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 148 of file ingestIndexReferenceTask.py.
lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.indexer |
Definition at line 171 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 149 of file ingestIndexReferenceTask.py.