numpy.ma.getmaskarray
- 
numpy.ma.getmaskarray(arr)[source]
- 
Return the mask of a masked array, or full boolean array of False. Return the mask of arras an ndarray ifarris aMaskedArrayand the mask is notnomask, else return a full boolean array of False of the same shape asarr.Parameters: - 
arr : array_like
- 
Input MaskedArrayfor which the mask is required.
 See also Examples>>> import numpy.ma as ma >>> a = ma.masked_equal([[1,2],[3,4]], 2) >>> a masked_array(data = [[1 --] [3 4]], mask = [[False True] [False False]], fill_value=999999) >>> ma.getmaskarray(a) array([[False, True], [False, False]])Result when mask == nomask>>> b = ma.masked_array([[1,2],[3,4]]) >>> b masked_array(data = [[1 2] [3 4]], mask = False, fill_value=999999) >>> >ma.getmaskarray(b) array([[False, False], [False, False]])
- 
    © 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
    https://docs.scipy.org/doc/numpy-1.16.1/reference/generated/numpy.ma.getmaskarray.html