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