cf.DimensionCoordinate.bounds

DimensionCoordinate.bounds

The cf.CoordinateBounds object containing the cell bounds.

Examples:
>>> c
<CF Coordinate: latitude(64) degrees_north>
>>> c.bounds
<CF CoordinateeBounds: latitude(64, 2) degrees_north>
>>> c.bounds = b
AttributeError: Can't set 'bounds' attribute. Consider the insert_bounds method.
>>> c.bounds.max()
<CF Data: 90.0 degrees_north>
>>> c.bounds -= 1
AttributeError: Can't set 'bounds' attribute. Consider the insert_bounds method.
>>> b = c.bounds
>>> b -= 1
>>> c.bounds.max()       
<CF Data: 89.0 degrees_north>

Previous topic

cf.DimensionCoordinate.attributes

Next topic

cf.DimensionCoordinate.cellsize

This Page