Dimension¶
-
class
lsst.daf.butler.
Dimension
(universe, name, config)¶ Bases:
lsst.daf.butler.DimensionElement
A discrete dimension of data used to organize Datasets and associate them with metadata.
Dimension
instances represent concepts such as “Instrument”, “Detector”, “Visit” and “SkyMap”, which are usually associated with database tables. ADatasetType
is associated with a fixed combination ofDimension
s.Dimension
objects are not directly constructable; they can only be obtained from aDimensionGraph
.Attributes Summary
doc
Documentation for this dimension ( str
).hasRegion
Whether this dimension is associated with a region on the sky ( bool
).link
Primary key fields that are used only by this dimension, not any dependencies ( frozenset
ofstr
).name
Name of this dimension ( str
, read-only).primaryKey
The names of fields that uniquely identify this dimension in a data ID dict ( frozenset
ofstr
).universe
The graph of all dimensions compatible with self ( DimensionGraph
).Methods Summary
dependencies
([required, optional])Return the set of dimensions this dimension depends on. graph
([optional])Return the minimal DimensionGraph
that containsself
.Attributes Documentation
-
link
¶ Primary key fields that are used only by this dimension, not any dependencies (
frozenset
ofstr
).
-
name
¶ Name of this dimension (
str
, read-only).Also assumed to be the name of any associated table or view.
-
primaryKey
¶ The names of fields that uniquely identify this dimension in a data ID dict (
frozenset
ofstr
).
-
universe
¶ The graph of all dimensions compatible with self (
DimensionGraph
).
Methods Documentation
-
dependencies
(required=True, optional=False)¶ Return the set of dimensions this dimension depends on.
Parameters: Returns: - dependencies :
DimensionSet
- dependencies :
-
graph
(optional=False)¶ Return the minimal
DimensionGraph
that containsself
.Parameters: Returns: - graph :
DimensionGraph
- graph :
-