[Numpy-discussion] maxima of masked arrays

Sasha ndarray at mac.com
Fri Feb 17 20:23:03 CST 2006


On 2/17/06, George Nurser <agn at noc.soton.ac.uk> wrote:
> But with a masked array there are problems.

What you see is a bug in ma.

> Are there any workarounds for this?

For now you can use

>>> ma.maximum.reduce(amask, 0)
array(data =
 [ 9 10 11 12],
      mask =
 [False False False False],
      fill_value=999999)




More information about the Numpy-discussion mailing list