[SciPy-user] msked array & histogram...

Phil Austin phaustin@gmail....
Wed Jun 25 12:54:39 CDT 2008


fred wrote:
> fred a écrit :
>> fred a écrit :
>>
>>> Is there some workaround ?
>> Yes.
>> Convert them to NaN.
> No.
> 
> It does not work at all (say for 10 % of nan)
> for masked arrays or arrays with NaN.
> 
> Any suggestion ?

ma.compressed?

import numpy.ma as ma
In [8]:help ma.compressed
------>help(ma.compressed)
Help on function compressed in module numpy.ma.core:

compressed(x)
     Return a 1-D array of all the non-masked data.



More information about the SciPy-user mailing list