[SciPy-user] Ols for np.arrays and masked arrays

josef.pktd@gmai... josef.pktd@gmai...
Fri Jan 16 20:13:47 CST 2009

>>> Actually, after the discussion for 3D picture filling, that it would
>> be possible to replace some of the missing values by their predicted
>> value or their conditional expectation in a second stage. I think this
>> would be the method specific "neutral" fill value.
> Except that it won't work, as .filled takes only one element (all the
> masked data are filled w/ the same value). What you wanna do is to use
> putmask on your standard ndarray.

What's the best way of unmasking a single masked element in a masked array?

y.data[i] = 5
y.mask[i] = False

Is there an ma.unmask(y[i],5)  ?

It's becoming clearer how this can work.


More information about the SciPy-user mailing list