cf.Field.all¶
-
Field.
all
()[source]¶ Test whether all data array elements evaluate to True.
Performs a logical and over the data array and returns the result. Masked values are considered as True during computation.
See also
Examples 1: >>> x = f.all()
Returns: - out:
bool
Whether ot not all data array elements evaluate to True.
Examples: >>> print f.array [[0 3 0]] >>> f.all() False
>>> print f.array [[1 3 --]] >>> f.all() True
- out: