cf.Data.isscalar

Data.isscalar

True if the data array is a 0-d scalar array.

Examples:
>>> d.ndim
0
>>> d.isscalar
True
>>> d.ndim >= 1
True
>>> d.isscalar
False