cf.DimensionCoordinate.cellsize

DimensionCoordinate.cellsize

The cell sizes.

If there are no cell bounds then the cell sizes are all zero.

New in version 2.0.

Examples

>>> print(c.bounds.array)
[[-90. -87.]
 [-87. -80.]
 [-80. -67.]]
>>> c.cellsize
<CF Data(3,): [3.0, 7.0, 13.0] degrees_north>
>>> print(d.cellsize.array)
[  3.   7.  13.]
>>> b = c.del_bounds()
>>> c.cellsize
<CF Data(3,): [0, 0, 0] degrees_north>