cf.Coordinate.isscalar

Coordinate.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.Coordinate.isdimension

Next topic

cf.Coordinate.lower_bounds

This Page