numpy.ma.clump_unmasked()
numpy.ma.clump_unmasked
-
numpy.ma.clump_unmasked(a)
[source] -
Return list of slices corresponding to the unmasked clumps of a 1-D array. (A “clump” is defined as a contiguous region of the array).
Parameters: a : ndarray
A one-dimensional masked array.
Returns: slices : list of slice
The list of slices, one