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

Previous topic

cf.Data.ismasked

Next topic

cf.Data.last_datum

This Page