A KeyHandler for skymaps.
Definition at line 208 of file translators.py.
◆ __init__()
def lsst.obs.base.gen2to3.translators.SkyMapKeyHandler.__init__ |
( |
|
self | ) |
|
◆ __str__()
def lsst.obs.base.gen2to3.translators.KeyHandler.__str__ |
( |
|
self | ) |
|
|
inherited |
◆ extract()
Any lsst.obs.base.gen2to3.translators.SkyMapKeyHandler.extract |
( |
|
self, |
|
|
dict |
gen2id, |
|
|
Optional[BaseSkyMap] |
skyMap, |
|
|
Optional[str] |
skyMapName, |
|
|
str |
datasetTypeName |
|
) |
| |
Extract a Gen3 data ID value from a Gen2 data ID.
Parameters
----------
gen2id: `dict`
Gen2 data ID from which to draw key-value pairs from.
skyMap: `BaseSkyMap`, optional
SkyMap that defines the tracts and patches used in the Gen2 data
ID, if any.
skyMapName: `str`
Name of the Gen3 skymap dimension that defines the tracts and
patches used in the Gen3 data ID.
datasetTypeName: `str`
Name of the dataset type.
Reimplemented from lsst.obs.base.gen2to3.translators.KeyHandler.
Definition at line 215 of file translators.py.
◆ translate()
def lsst.obs.base.gen2to3.translators.KeyHandler.translate |
( |
|
self, |
|
|
dict |
gen2id, |
|
|
dict |
gen3id, |
|
|
Optional[BaseSkyMap] |
skyMap, |
|
|
Optional[str] |
skyMapName, |
|
|
str |
datasetTypeName |
|
) |
| |
|
inherited |
Update a Gen3 data ID dict with a single key-value pair from a Gen2
data ID.
This method is implemented by the base class and is not expected to
be re-implemented by subclasses.
Parameters
----------
gen2id: `dict`
Gen2 data ID from which to draw key-value pairs from.
gen3id: `dict`
Gen3 data ID to update in-place.
skyMap: `BaseSkyMap`, optional
SkyMap that defines the tracts and patches used in the Gen2 data
ID, if any.
skyMapName: `str`
Name of the Gen3 skymap dimension that defines the tracts and
patches used in the Gen3 data ID.
datasetTypeName: `str`
Name of the dataset type.
Definition at line 82 of file translators.py.
◆ dimension
lsst.obs.base.gen2to3.translators.KeyHandler.dimension |
|
inherited |
The documentation for this class was generated from the following file: