lsst.obs.base
20.0.0-59-gb502cbb+2dbed42d3e
|
Public Member Functions | |
def | __init__ (self, filterDefinitions) |
def | extract (self, gen2id, *args, **kwargs) |
def | __repr__ (self) |
def | translate (self, dict gen2id, dict gen3id, Optional[BaseSkyMap] skyMap, Optional[str] skyMapName, str datasetTypeName) |
Any | extract (self, dict gen2id, Optional[BaseSkyMap] skyMap, Optional[str] skyMapName, str datasetTypeName) |
Public Attributes | |
dimension | |
KeyHandler for gen2 ``filter`` keys that match ``physical_filter`` keys in gen3 but should be mapped to ``band``. Note that multiple physical filter can potentially map to one abstract filter, so be careful to only use this translator on obs packages where there is a one-to-one mapping.
Definition at line 192 of file translators.py.
def lsst.obs.base.gen2to3.translators.PhysicalFilterToBandKeyHandler.__init__ | ( | self, | |
filterDefinitions | |||
) |
Definition at line 203 of file translators.py.
|
inherited |
Definition at line 50 of file translators.py.
|
inherited |
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 in lsst.obs.base.gen2to3.translators.SkyMapKeyHandler, lsst.obs.base.gen2to3.translators.PatchKeyHandler, lsst.obs.base.gen2to3.translators.CopyKeyHandler, and lsst.obs.base.gen2to3.translators.ConstantKeyHandler.
Definition at line 81 of file translators.py.
def lsst.obs.base.gen2to3.translators.PhysicalFilterToBandKeyHandler.extract | ( | self, | |
gen2id, | |||
* | args, | ||
** | kwargs | ||
) |
Definition at line 208 of file translators.py.
|
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 53 of file translators.py.
|
inherited |
Definition at line 46 of file translators.py.