numpy.ma.masked_values

numpy.ma.masked_values(x, value, rtol=1.0000000000000001e-05, atol=1e-08, copy=True, shrink=True)

Mask the array x where the data are approximately equal in value, i.e. (abs(x - value) <= atol+rtol*abs(value))

Suitable only for floating points. For integers, please use masked_equal. The mask is set to nomask if posible.

Parameters:

x : array_like

Array to fill.

value : float

Masking value.

rtol : {float}, optional

Tolerance parameter.

atol : {float}, optional

Tolerance parameter (1e-8).

copy : {True, False}, optional

Whether to return a copy of x.

shrink : {True, False}, optional

Whether to collapse a mask full of False to nomask

Previous topic

numpy.ma.masked_outside

Next topic

numpy.ma.masked_where

This Page

Quick search