Re: [Numpy-discussion] mapping a function to a masked array

2011-01-12 Thread Pierre GM
On Jan 12, 2011, at 12:45 PM, Ben Elliston wrote: > I have a masked array of values that I would like to transform through > a user-defined function. Naturally, I want to ignore any values that > are masked in the initial array. > > The user-defined function examines other points around the val

[Numpy-discussion] mapping a function to a masked array

2011-01-12 Thread Ben Elliston
I have a masked array of values that I would like to transform through a user-defined function. Naturally, I want to ignore any values that are masked in the initial array. The user-defined function examines other points around the value in question, so I need to use ndenumerate (or similar) to g