lsst.meas.algorithms
16.0-12-g67c1616e+3
|
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 an ICRS SpherePoint 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 137 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 162 of file ingestIndexReferenceTask.py.
|
static |
Create an ICRS SpherePoint 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 |
Definition at line 205 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 173 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 |
Definition at line 281 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 |
Definition at line 292 of file ingestIndexReferenceTask.py.
lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.butler |
Definition at line 167 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 145 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 146 of file ingestIndexReferenceTask.py.
lsst.meas.algorithms.ingestIndexReferenceTask.IngestIndexedReferenceTask.indexer |
Definition at line 169 of file ingestIndexReferenceTask.py.
|
static |
Definition at line 147 of file ingestIndexReferenceTask.py.