Return a 1-D array of all the non-masked data.
data : ndarray.
A new ndarray holding the non-masked data is returned.
Notes
Examples
>>> x = array(arange(5), mask=[0]+[1]*4) >>> print x.compressed() [0] >>> print type(x.compressed()) <type 'numpy.ndarray'>
numpy.ma.filled
numpy.ma.MaskedArray.filled