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, datasetType, policy, registry, rootStorage, provided=None) |
def | template (self) |
def | keys (self) |
def | map (self, mapper, dataId, write=False) |
def | lookup (self, properties, dataId) |
def | have (self, properties, dataId) |
def | need (self, properties, dataId) |
Public Attributes | |
datasetType | |
registry | |
rootStorage | |
keyDict | |
python | |
persistable | |
storage | |
level | |
tables | |
range | |
columns | |
obsTimeName | |
recipe | |
Mapping is a base class for all mappings. Mappings are used by the Mapper to map (determine a path to some data given some identifiers) and standardize (convert data into some standard format or type) data, and to query the associated registry to see what data is available. Subclasses must specify self.storage or else override self.map(). Public methods: lookup, have, need, getKeys, map Mappings are specified mainly by policy. A Mapping policy should consist of: template (string): a Python string providing the filename for that particular dataset type based on some data identifiers. In the case of redundancy in the path (e.g., file uniquely specified by the exposure number, but filter in the path), the redundant/dependent identifiers can be looked up in the registry. python (string): the Python type for the retrieved data (e.g. lsst.afw.image.ExposureF) persistable (string): the Persistable registration for the on-disk data (e.g. ImageU) storage (string, optional): Storage type for this dataset type (e.g. "FitsStorage") level (string, optional): the level in the camera hierarchy at which the data is stored (Amp, Ccd or skyTile), if relevant tables (string, optional): a whitespace-delimited list of tables in the registry that can be NATURAL JOIN-ed to look up additional information. Parameters ---------- datasetType : `str` Butler dataset type to be mapped. policy : `daf_persistence.Policy` Mapping Policy. registry : `lsst.obs.base.Registry` Registry for metadata lookups. rootStorage : Storage subclass instance Interface to persisted repository data. provided : `list` of `str` Keys provided by the mapper.
Definition at line 33 of file mapping.py.
def lsst.obs.base.mapping.Mapping.__init__ | ( | self, | |
datasetType, | |||
policy, | |||
registry, | |||
rootStorage, | |||
provided = None |
|||
) |
Definition at line 84 of file mapping.py.
def lsst.obs.base.mapping.Mapping.have | ( | self, | |
properties, | |||
dataId | |||
) |
Returns whether the provided data identifier has all the properties in the provided list. Parameters ---------- properties : `list of `str` Properties required. dataId : `dict` Dataset identifier. Returns ------- bool True if all properties are present.
Definition at line 275 of file mapping.py.
def lsst.obs.base.mapping.Mapping.keys | ( | self | ) |
Return the dict of keys and value types required for this mapping.
Definition at line 135 of file mapping.py.
def lsst.obs.base.mapping.Mapping.lookup | ( | self, | |
properties, | |||
dataId | |||
) |
Look up properties for in a metadata registry given a partial dataset identifier. Parameters ---------- properties : `list` of `str` What to look up. dataId : `dict` Dataset identifier Returns ------- `list` of `tuple` Values of properties.
Reimplemented in lsst.obs.base.mapping.CalibrationMapping.
Definition at line 192 of file mapping.py.
def lsst.obs.base.mapping.Mapping.map | ( | self, | |
mapper, | |||
dataId, | |||
write = False |
|||
) |
Standard implementation of map function. Parameters ---------- mapper: `lsst.daf.persistence.Mapper` Object to be mapped. dataId: `dict` Dataset identifier. Returns ------- lsst.daf.persistence.ButlerLocation Location of object that was mapped.
Reimplemented in lsst.obs.base.mapping.CalibrationMapping.
Definition at line 140 of file mapping.py.
def lsst.obs.base.mapping.Mapping.need | ( | self, | |
properties, | |||
dataId | |||
) |
Ensures all properties in the provided list are present in the data identifier, looking them up as needed. This is only possible for the case where the data identifies a single exposure. Parameters ---------- properties : `list` of `str` Properties required. dataId : `dict` Partial dataset identifier Returns ------- `dict` Copy of dataset identifier with enhanced values.
Definition at line 296 of file mapping.py.
def lsst.obs.base.mapping.Mapping.template | ( | self | ) |
Definition at line 128 of file mapping.py.
lsst.obs.base.mapping.Mapping.columns |
Definition at line 123 of file mapping.py.
lsst.obs.base.mapping.Mapping.datasetType |
Definition at line 89 of file mapping.py.
lsst.obs.base.mapping.Mapping.keyDict |
Definition at line 102 of file mapping.py.
lsst.obs.base.mapping.Mapping.level |
Definition at line 117 of file mapping.py.
lsst.obs.base.mapping.Mapping.obsTimeName |
Definition at line 124 of file mapping.py.
lsst.obs.base.mapping.Mapping.persistable |
Definition at line 114 of file mapping.py.
lsst.obs.base.mapping.Mapping.python |
Definition at line 113 of file mapping.py.
lsst.obs.base.mapping.Mapping.range |
Definition at line 122 of file mapping.py.
lsst.obs.base.mapping.Mapping.recipe |
Definition at line 125 of file mapping.py.
lsst.obs.base.mapping.Mapping.registry |
Definition at line 90 of file mapping.py.
lsst.obs.base.mapping.Mapping.rootStorage |
Definition at line 91 of file mapping.py.
lsst.obs.base.mapping.Mapping.storage |
Definition at line 115 of file mapping.py.
lsst.obs.base.mapping.Mapping.tables |
Definition at line 119 of file mapping.py.