Dimension¶
-
class
lsst.daf.butler.Dimension(universe, name, config)¶ Bases:
lsst.daf.butler.DimensionElementA discrete dimension of data used to organize Datasets and associate them with metadata.
Dimensioninstances represent concepts such as “instrument”, “detector”, “visit” and “skymap”, which are usually associated with database tables. ADatasetTypeis associated with a fixed combination ofDimensions.Dimensionobjects are not directly constructable; they can only be obtained from aDimensionGraph.Attributes Summary
docDocumentation for this dimension ( str).hasRegionWhether this dimension is associated with a region on the sky ( bool).nameName of this dimension ( str, read-only).universeThe graph of all dimensions compatible with self ( DimensionGraph).Methods Summary
dependencies([required, implied])Return the set of dimensions this dimension depends on. graph([implied])Return the minimal DimensionGraphthat containsself.links([expand, implied])Return the names of fields that uniquely identify this dimension in a data ID dict. Attributes Documentation
-
name¶ Name of this dimension (
str, read-only).Also assumed to be the name of any associated table or view.
-
universe¶ The graph of all dimensions compatible with self (
DimensionGraph).
Methods Documentation
-
dependencies(required=True, implied=False)¶ Return the set of dimensions this dimension depends on.
Parameters: Returns: - dependencies :
DimensionSet
- dependencies :
-
graph(implied=False)¶ Return the minimal
DimensionGraphthat containsself.Parameters: Returns: - graph :
DimensionGraph
- graph :
-
links(expand=True, implied=False)¶ Return the names of fields that uniquely identify this dimension in a data ID dict.
Parameters: Returns:
-