cf.DimensionCoordinate.isscalar

DimensionCoordinate.isscalar

True if and only if the data array is a scalar array.

Examples

>>> print f.array
2
>>> f.isscalar
True
>>> print f.array
[2]
>>> f.isscalar
False
>>> print f.array
[[2, 3]]
>>> f.isscalar
False
>>> f._hasData
False
>>> f.isscalar
False

Previous topic

cf.DimensionCoordinate.isdimension

Next topic

cf.DimensionCoordinate.lower_bounds

This Page