|
| | _getFluxes (self, input) |
| |
| | _setCoordinateCovariance (self, record, row) |
| |
| | _convertOneFile (self, filename, fileLocks) |
| |
| | _doOnePixel (self, inputData, matchedPixels, pixelId, fluxes, coordErr) |
| |
| | _setIds (self, inputData, catalog) |
| |
| | _getCoordErr (self, inputData) |
| |
| | _setFlags (self, record, row) |
| |
| | _setProperMotion (self, record, row) |
| |
| | _setParallax (self, record, row) |
| |
| | _epochToMjdTai (self, nativeEpoch) |
| |
| | _setExtra (self, record, row) |
| |
| | _fillRecord (self, record, row) |
| |
|
| list | _flags = ['photometric', 'resolved', 'variable'] |
| |
| str | _DefaultName = 'convertRefcatManager' |
| |
Special-case convert manager to deal with Gaia fluxes.
Definition at line 460 of file convertRefcatManager.py.
◆ __init__()
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager.__init__ |
( |
| self, |
|
|
* | args, |
|
|
** | kwargs ) |
◆ _convertOneFile()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._convertOneFile |
( |
| self, |
|
|
| filename, |
|
|
| fileLocks ) |
|
protectedinherited |
Read and process one file, and write its records to the correct
indexed files, while handling exceptions in a useful way so that they
don't get swallowed by the multiprocess pool.
Parameters
----------
filename : `str`
The file to process.
fileLocks : `dict` [`int`, `multiprocessing.Lock`]
A Lock for each HTM pixel; each pixel gets one file written, and
we need to block when one process is accessing that file.
Returns
-------
pixels, files : `list` [`int`]
The pixel ids that were written to.
Definition at line 133 of file convertRefcatManager.py.
◆ _doOnePixel()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._doOnePixel |
( |
| self, |
|
|
| inputData, |
|
|
| matchedPixels, |
|
|
| pixelId, |
|
|
| fluxes, |
|
|
| coordErr ) |
|
protectedinherited |
Process one HTM pixel, appending to an existing catalog or creating
a new catalog, as needed.
Parameters
----------
inputData : `numpy.ndarray`
The data from one input file.
matchedPixels : `numpy.ndarray`
The row-matched pixel indexes corresponding to ``inputData``.
pixelId : `int`
The pixel index we are currently processing.
fluxes : `dict` [`str`, `numpy.ndarray`]
The values that will go into the flux and fluxErr fields in the
output catalog.
coordErr : `dict` [`str`, `numpy.ndarray`]
The values that will go into the coord_raErr, coord_decErr, and
coord_ra_dec_Cov fields in the output catalog (in radians).
Definition at line 183 of file convertRefcatManager.py.
◆ _epochToMjdTai()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._epochToMjdTai |
( |
| self, |
|
|
| nativeEpoch ) |
|
protectedinherited |
◆ _fillRecord()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._fillRecord |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protectedinherited |
Fill a record in an indexed catalog to be persisted.
Parameters
----------
record : `lsst.afw.table.SimpleRecord`
Row from indexed catalog to modify.
row : structured `numpy.array`
Row from catalog being converted.
Definition at line 440 of file convertRefcatManager.py.
◆ _getCoordErr()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._getCoordErr |
( |
| self, |
|
|
| inputData ) |
|
protectedinherited |
Compute the ra/dec error fields that will go into the output catalog.
Parameters
----------
inputData : `numpy.ndarray`
The input data to compute fluxes for.
Returns
-------
coordErr : `dict` [`str`, `numpy.ndarray`]
The values that will go into the coord_raErr, coord_decErr, fields
in the output catalog (in radians).
Notes
-----
This does not handle the ra/dec covariance field,
``coord_ra_coord_dec_Cov``. That field is handled in
`_setCoordinateCovariance`.
Definition at line 290 of file convertRefcatManager.py.
◆ _getFluxes()
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager._getFluxes |
( |
| self, |
|
|
| inputData ) |
|
protected |
◆ _setCoordinateCovariance()
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager._setCoordinateCovariance |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protected |
◆ _setExtra()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._setExtra |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protectedinherited |
Set extra data fields in a record of an indexed catalog.
Parameters
----------
record : `lsst.afw.table.SimpleRecord`
Row from indexed catalog to modify.
row : structured `numpy.array`
Row from catalog being converted.
Definition at line 417 of file convertRefcatManager.py.
◆ _setFlags()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._setFlags |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protectedinherited |
Set flags in an output record.
Parameters
----------
record : `lsst.afw.table.SimpleRecord`
Row from indexed catalog to modify.
row : `numpy.ndarray`
Row from catalog being converted.
Definition at line 318 of file convertRefcatManager.py.
◆ _setIds()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._setIds |
( |
| self, |
|
|
| inputData, |
|
|
| catalog ) |
|
protectedinherited |
Fill the `id` field of catalog with a running index, filling the
last values up to the length of ``inputData``.
Fill with `self.config.id_name` if specified, otherwise use the
global running counter value.
Parameters
----------
inputData : `numpy.ndarray`
The input data that is being processed.
catalog : `lsst.afw.table.SimpleCatalog`
The output catalog to fill the ids.
Definition at line 220 of file convertRefcatManager.py.
◆ _setParallax()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._setParallax |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protectedinherited |
◆ _setProperMotion()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._setProperMotion |
( |
| self, |
|
|
| record, |
|
|
| row ) |
|
protectedinherited |
Set proper motion fields in a record of an indexed catalog.
The proper motions are read from the specified columns,
scaled appropriately, and installed in the appropriate
columns of the output.
Parameters
----------
record : `lsst.afw.table.SimpleRecord`
Row from indexed catalog to modify.
row : structured `numpy.array`
Row from catalog being converted.
Definition at line 361 of file convertRefcatManager.py.
◆ computeCoord()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.computeCoord |
( |
| row, |
|
|
| ra_name, |
|
|
| dec_name ) |
|
staticinherited |
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 271 of file convertRefcatManager.py.
◆ getCatalog()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.getCatalog |
( |
| self, |
|
|
| pixelId, |
|
|
| schema, |
|
|
| nNewElements ) |
|
inherited |
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 242 of file convertRefcatManager.py.
◆ run()
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.run |
( |
| self, |
|
|
| inputFiles ) |
|
inherited |
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.
◆ _DefaultName
| str lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._DefaultName = 'convertRefcatManager' |
|
staticprotectedinherited |
◆ _flags
| list lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager._flags = ['photometric', 'resolved', 'variable'] |
|
staticprotectedinherited |
◆ addRefCatMetadata
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.addRefCatMetadata = addRefCatMetadata |
|
inherited |
◆ config
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.config = config |
|
inherited |
◆ ConfigClass
◆ coord_err_unit
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.coord_err_unit = u.Unit(self.config.coord_err_unit) |
|
inherited |
◆ file_reader
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.file_reader = file_reader |
|
inherited |
◆ filenames
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.filenames = filenames |
|
inherited |
◆ htmRange
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.htmRange = htmRange |
|
inherited |
◆ indexer
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.indexer = indexer |
|
inherited |
◆ key_map
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.key_map = key_map |
|
inherited |
◆ log
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.log = log |
|
inherited |
◆ nInputFiles
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.nInputFiles = len(inputFiles) |
|
inherited |
◆ outputUnit
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager.outputUnit = u.radian * u.radian |
◆ parallaxUnit
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager.parallaxUnit = self.config.parallax_scale * u.milliarcsecond |
◆ properMotionUnit
| lsst.meas.algorithms.convertRefcatManager.ConvertGaiaManager.properMotionUnit = self.config.pm_scale * u.milliarcsecond |
◆ schema
| lsst.meas.algorithms.convertRefcatManager.ConvertRefcatManager.schema = schema |
|
inherited |
The documentation for this class was generated from the following file: