LSST Applications
21.0.0+75b29a8a7f,21.0.0+e70536a077,21.0.0-1-ga51b5d4+62c747d40b,21.0.0-10-gbfb87ad6+3307648ee3,21.0.0-15-gedb9d5423+47cba9fc36,21.0.0-2-g103fe59+fdf0863a2a,21.0.0-2-g1367e85+d38a93257c,21.0.0-2-g45278ab+e70536a077,21.0.0-2-g5242d73+d38a93257c,21.0.0-2-g7f82c8f+e682ffb718,21.0.0-2-g8dde007+d179fbfa6a,21.0.0-2-g8f08a60+9402881886,21.0.0-2-ga326454+e682ffb718,21.0.0-2-ga63a54e+08647d4b1b,21.0.0-2-gde069b7+26c92b3210,21.0.0-2-gecfae73+0445ed2f95,21.0.0-2-gfc62afb+d38a93257c,21.0.0-27-gbbd0d29+ae871e0f33,21.0.0-28-g5fc5e037+feb0e9397b,21.0.0-3-g21c7a62+f4b9c0ff5c,21.0.0-3-g357aad2+57b0bddf0b,21.0.0-3-g4be5c26+d38a93257c,21.0.0-3-g65f322c+3f454acf5d,21.0.0-3-g7d9da8d+75b29a8a7f,21.0.0-3-gaa929c8+9e4ef6332c,21.0.0-3-ge02ed75+4b120a55c4,21.0.0-4-g3300ddd+e70536a077,21.0.0-4-g591bb35+4b120a55c4,21.0.0-4-gc004bbf+4911b9cd27,21.0.0-4-gccdca77+f94adcd104,21.0.0-4-ge8fba5a+2b3a696ff9,21.0.0-5-gb155db7+2c5429117a,21.0.0-5-gdf36809+637e4641ee,21.0.0-6-g00874e7+c9fd7f7160,21.0.0-6-g4e60332+4b120a55c4,21.0.0-7-gc8ca178+40eb9cf840,21.0.0-8-gfbe0b4b+9e4ef6332c,21.0.0-9-g2fd488a+d83b7cd606,w.2021.05
LSST Data Management Base Package
|
Public Member Functions | |
def | __init__ (self, Optional[Log] log=None) |
def | __str__ (self) |
def | addRule (self, KeyHandler handler, Optional[str] instrument=None, Optional[str] datasetTypeName=None, Iterable[str] gen2keys=(), bool consume=True) |
def | addGenericInstrumentRules (self, str instrumentName, str calibFilterType="physical_filter", str detectorKey="ccd", str exposureKey="visit") |
def | makeMatching (self, str datasetTypeName, Dict[str, type] gen2keys, Optional[str] instrument=None, Optional[BaseSkyMap] skyMap=None, Optional[str] skyMapName=None) |
Public Attributes | |
log | |
A class that manages a system of rules for translating Gen2 data IDs to Gen3 data IDs, and uses these to construct translators for particular dataset types. Parameters ---------- log : `lsst.log.Log`, optional A logger for diagnostic messages.
Definition at line 234 of file translators.py.
def lsst.obs.base.gen2to3.translators.TranslatorFactory.__init__ | ( | self, | |
Optional[Log] | log = None |
||
) |
Definition at line 244 of file translators.py.
def lsst.obs.base.gen2to3.translators.TranslatorFactory.__str__ | ( | self | ) |
Definition at line 263 of file translators.py.
def lsst.obs.base.gen2to3.translators.TranslatorFactory.addGenericInstrumentRules | ( | self, | |
str | instrumentName, | ||
str | calibFilterType = "physical_filter" , |
||
str | detectorKey = "ccd" , |
||
str | exposureKey = "visit" |
||
) |
Add translation rules that depend on some properties of the instrument but are otherwise generic. Parameters ---------- instrument : `str` The short (dimension) name of the instrument that conversion is going to be run on. calibFilterType : `str`, optional One of ``physical_filter`` or ``band``, indicating which of those the gen2 calibRegistry uses as the ``filter`` key. detectorKey : `str`, optional The gen2 key used to identify what in gen3 is `detector`. exposureKey : `str`, optional The gen2 key used to identify what in gen3 is `exposure`.
Definition at line 358 of file translators.py.
def lsst.obs.base.gen2to3.translators.TranslatorFactory.addRule | ( | self, | |
KeyHandler | handler, | ||
Optional[str] | instrument = None , |
||
Optional[str] | datasetTypeName = None , |
||
Iterable[str] | gen2keys = () , |
||
bool | consume = True |
||
) |
Add a KeyHandler and an associated matching rule. Parameters ---------- handler : `KeyHandler` A KeyHandler instance to add to a Translator when this rule matches. instrument : `str` Gen3 instrument name the Gen2 repository must be associated with for this rule to match, or None to match any instrument. datasetTypeName : `str` Name of the DatasetType this rule matches, or None to match any DatasetType. gen2Keys : sequence Sequence of Gen2 data ID keys that must all be present for this rule to match. consume : `bool` or `tuple` If True (default), remove all entries in gen2keys from the set of keys being matched to in order to prevent less-specific handlers from matching them. May also be a `tuple` listing only the keys to consume.
Definition at line 277 of file translators.py.
def lsst.obs.base.gen2to3.translators.TranslatorFactory.makeMatching | ( | self, | |
str | datasetTypeName, | ||
Dict[str, type] | gen2keys, | ||
Optional[str] | instrument = None , |
||
Optional[BaseSkyMap] | skyMap = None , |
||
Optional[str] | skyMapName = None |
||
) |
Construct a Translator appropriate for instances of the given dataset. Parameters ---------- datasetTypeName : `str` Name of the dataset type. gen2keys: `dict` Keys of a Gen2 data ID for this dataset. instrument: `str`, optional Name of the Gen3 instrument dimension for translated data IDs. skyMap: `~lsst.skymap.BaseSkyMap`, optional The skymap instance that defines any tract/patch data IDs. `~lsst.skymap.BaseSkyMap` instances. skyMapName : `str`, optional Gen3 SkyMap Dimension name to be associated with any tract or patch Dimensions. Returns ------- translator : `Translator` A translator whose translate() method can be used to transform Gen2 data IDs to Gen3 dataIds.
Definition at line 421 of file translators.py.
lsst.obs.base.gen2to3.translators.TranslatorFactory.log |
Definition at line 261 of file translators.py.