|
lsst.meas.algorithms g511c235543+401ba1f5a0
|
Public Member Functions | |
| def | __init__ (self, filenames, config, file_reader, indexer, schema, key_map, htmRange, addRefCatMetadata, log) |
| def | run (self, inputFiles) |
| def | getCatalog (self, pixelId, schema, nNewElements) |
Static Public Member Functions | |
| def | computeCoord (row, ra_name, dec_name) |
Public Attributes | |
| filenames | |
| config | |
| file_reader | |
| indexer | |
| schema | |
| key_map | |
| htmRange | |
| addRefCatMetadata | |
| log | |
| coord_err_unit | |
| nInputFiles | |
Static Public Attributes | |
| ConfigClass = ConvertRefcatManagerConfig | |
Convert a reference catalog from external files into the LSST HTM sharded
format, using a multiprocessing Pool to speed up the work.
Parameters
----------
filenames : `dict` [`int`, `str`]
The HTM pixel id and filenames to convert the catalog into.
config : `lsst.meas.algorithms.ConvertReferenceCatalogConfig`
The Task configuration holding the field names.
file_reader : `lsst.pipe.base.Task`
The file reader to use to load the files.
indexer : `lsst.meas.algorithms.HtmIndexer`
The class used to compute the HTM pixel per coordinate.
schema : `lsst.afw.table.Schema`
The schema of the output catalog.
key_map : `dict` [`str`, `lsst.afw.table.Key`]
The mapping from output field names to keys in the Schema.
htmRange : `tuple` [`int`]
The start and end HTM pixel ids.
addRefCatMetadata : callable
A function called to add extra metadata to each output Catalog.
log : `lsst.log.Log` or `logging.Logger`
The log to send messages to.
Definition at line 54 of file convertRefcatManager.py.
| def lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.__init__ | ( | self, | |
| filenames, | |||
| config, | |||
| file_reader, | |||
| indexer, | |||
| schema, | |||
| key_map, | |||
| htmRange, | |||
| addRefCatMetadata, | |||
| log | |||
| ) |
Reimplemented in lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager.
Definition at line 84 of file convertRefcatManager.py.
|
static |
Create an ICRS coord. from a row of a catalog being converted.
Parameters
----------
row : `numpy.ndarray`
Row from catalog being converted.
ra_name : `str`
Name of RA key in catalog being converted.
dec_name : `str`
Name of Dec key in catalog being converted.
Returns
-------
coord : `lsst.geom.SpherePoint`
ICRS coordinate.
Definition at line 275 of file convertRefcatManager.py.
| def lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.getCatalog | ( | self, | |
| pixelId, | |||
| schema, | |||
| nNewElements | |||
| ) |
Get a catalog from disk or create it if it doesn't exist.
Parameters
----------
pixelId : `dict`
Identifier for catalog to retrieve
schema : `lsst.afw.table.Schema`
Schema to use in catalog creation it does not exist.
nNewElements : `int`
The number of new elements that will be added to the catalog,
so space can be preallocated.
Returns
-------
catalog : `lsst.afw.table.SimpleCatalog`
The new or read-and-resized catalog specified by `dataId`.
Definition at line 246 of file convertRefcatManager.py.
| def lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.run | ( | self, | |
| inputFiles | |||
| ) |
Index a set of input files from a reference catalog, and write the
output to the appropriate filenames, in parallel.
Parameters
----------
inputFiles : `list`
A list of file paths to read data from.
Returns
-------
output : `dict` [`int`, `str`]
The htm ids and the filenames that were written to.
Definition at line 100 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.addRefCatMetadata |
Definition at line 93 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.config |
Definition at line 87 of file convertRefcatManager.py.
|
static |
Definition at line 82 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.coord_err_unit |
Definition at line 98 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.file_reader |
Definition at line 88 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.filenames |
Definition at line 86 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.htmRange |
Definition at line 92 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.indexer |
Definition at line 89 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.key_map |
Definition at line 91 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.log |
Definition at line 94 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.nInputFiles |
Definition at line 115 of file convertRefcatManager.py.
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.schema |
Definition at line 90 of file convertRefcatManager.py.