cf.Field.isscalar

Field.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.Field.hardmask

Next topic

cf.Field.mask

This Page