numpy.ma.masked_outside()
numpy.ma.masked_outside
-
numpy.ma.masked_outside(x, v1, v2, copy=True)
[source] -
Mask an array outside a given interval.
Shortcut to
masked_where
, wherecondition
is True forx
outside the interval [v1,v2] (x < v1)|(x > v2). The boundariesv1
andv2
can be given in either order.See also
masked_where
- Mask where a condition is met.