cf.Field.ndim

Field.ndim

The number of dimensions in the data array.

See also

data, hasdata, isscalar, shape

Examples:

>>> f.hasdata
True
>>> f.shape
(73, 96)
>>> f.ndim
2
>>> f.shape
()
>>> f.ndim
0