Set selected elements of the data array’s mask in place.
The value to which the selected elements of the mask will be set may be any object which is broadcastable across the selected elements. The broadcasted value may be of any data type but will be evaluated as boolean.
The mask may be effectively removed by setting every element to False with f.setmask(False).
Unmasked elements are set to the fill value.
Note that if and only if the value to be assigned is logically scalar and evaluates to True then f.setmask(value, indices) is equivalent to f.setitem(cf.masked, indices). This is consistent with the behaviour of numpy masked arrays.
Parameters : |
|
---|---|
Returns : | None |
Examples