A CF-compliant earth science data analysis library
Bounds.
masked_invalid
Mask the array where invalid values occur (NaN or inf).
See also
numpy.ma.masked_invalid
bool
If True then do the operation in-place and return None.
None
Use the inplace parameter instead.
Bounds
The construct with masked values, or None if the operation was in-place.
Examples
>>> print(f.array) [0 1 2] >>> print(g.array) [0 2 0] >>> h = f / g >>> print(h.array) [nan 0.5 inf] >>> i = h.masked_invalid() >>> print(i.array) [-- 0.5 --]