cf.DimensionCoordinate.any

DimensionCoordinate.any()[source]

Test whether any data elements evaluate to True.

Performs a logical “or” over the data array and returns the result. Masked values are considered as False during computation.

See also

all, allclose

Returns:
bool

Whether ot not any data elements evaluate to True.

Examples:

>>> print(f.array)
[[0  0  0]]
>>> f.any()
False
>>> print(f.array)
[[--  0  0]]
>>> f.any()
False
>>> print(f.array)
[[--  3  0]]
>>> f.any()
True