cf.Field.is_scalar

Field.is_scalar

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

Examples

>>> f.array
array(2)
>>> f.is_scalar
True
>>> f.array
array([2])
>>> f.is_scalar
False

Previous topic

cf.Field.first_datum

Next topic

cf.Field.last_datum

This Page