cf.DimensionCoordinate.get_bounds¶
-
DimensionCoordinate.
get_bounds
(default=ValueError(), **kwargs)[source]¶ Return the bounds.
New in version 3.0.0.
See also
bounds
,create_bounds', `get_data
,del_bounds
,has_bounds
,set_bounds
- Parameters
- default: optional
Return the value of the default parameter if bounds have not been set.
If set to an
Exception
instance then it will be raised instead.
- Returns
Bounds
The bounds.
Examples
>>> b = Bounds(data=cfdm.Data(range(10).reshape(5, 2))) >>> c.set_bounds(b) >>> c.has_bounds() True >>> c.get_bounds() <Bounds: (5, 2) > >>> b = c.del_bounds() >>> b <Bounds: (5, 2) > >>> c.has_bounds() False >>> print(c.get_bounds(None)) None >>> print(c.del_bounds(None)) None