cfdm.Array.ndim

Array.ndim

Number of array dimensions.

New in version (cfdm): 1.7.0

Examples:

>>> a.shape
(73, 96)
>>> a.ndim
2
>>> a.size
7008
>>> a.shape
(1, 1, 1)
>>> a.ndim
3
>>> a.size
1
>>> a.shape
()
>>> a.ndim
0
>>> a.size
1