cf.Constructs.value¶
-
Constructs.
value
(default=ValueError())[source]¶ Return the sole metadata construct.
New in version 1.7.0.
Parameters: - default: optional
Return the value of the default parameter if there is not exactly one construct. If set to an
Exception
instance then it will be raised instead.
Returns: The metadata construct.
Examples:
>>> print(c) Constructs: {'dimensioncoordinate0': <DimensionCoordinate: latitude(5) degrees_north>} >>> c.key( 'dimensioncoordinate0' >>> c.value() <DimensionCoordinate: latitude(5) degrees_north>