cf.DimensionCoordinate.bounds¶
-
DimensionCoordinate.
bounds
¶ Return the bounds.
f.bounds
is equivalent tof.get_bounds()
New in version (cfdm): 1.7.0
See also
- Returns
Bounds
The bounds.
Examples
>>> c = cf.DimensionCoordinate() >>> b = cf.Bounds(data=cf.Data(numpy.arange(10).reshape(5, 2))) >>> c.set_bounds(b) >>> c.has_bounds() True >>> b = c.bounds >>> b <CF Bounds: (5, 2) > >>> b.data <CF Data(5, 2): [[0, ..., 9]]> >>> b.data.shape (5, 2)