numpy.ma.getmask()

numpy.ma.getmask

numpy.ma.getmask(a) [source]

Return the mask of a masked array, or nomask.

Return the mask of a as an ndarray if a is a MaskedArray and the mask is not nomask, else return nomask. To guarantee a full array of booleans of the