[Numpy-discussion] Condensing array...

Fred fredmfp@gmail....
Fri Feb 25 03:36:42 CST 2011


Hi there,

I have a big array (44 GB) I want to decimate.

But this array has a lot of NaN (only 1/3 has value, in fact, so 2/3 of 
NaN).

If I "basically" decimate it (a la NumPy, ie data[::nx, ::ny, ::nz], for 
instance), the decimated array will also have a lot of NaN.

What I would like to have in one cell of the decimated array is the 
nearest (for instance) value in the big array. This is what I call a 
"condensated array".

How could I do that, a la NumPy?

TIA.


Cheers,

-- 
Fred


More information about the NumPy-Discussion mailing list