SciPy

numpy.ma.masked_array.flat

masked_array.flat

Flat version of the array.