Re: [Numpy-discussion] median filtering a masked array

2014-11-06 Thread Daπid
On 5 November 2014 19:11, Moroney, Catherine M (398E) catherine.m.moro...@jpl.nasa.gov wrote: What is the recommended way of doing a fast median filter on an array where only certain elements of the array need to be calculated? I'm trying to avoid a nested loop over all (I,J) elements.

Re: [Numpy-discussion] median filtering a masked array

2014-11-06 Thread Stefan van der Walt
On 2014-11-06 11:10:29, Daπid davidmen...@gmail.com wrote: On 5 November 2014 19:11, Moroney, Catherine M (398E) catherine.m.moro...@jpl.nasa.gov wrote: What is the recommended way of doing a fast median filter on an array where only certain elements of the array need to be calculated? I'm

[Numpy-discussion] median filtering a masked array

2014-11-05 Thread Moroney, Catherine M (398E)
Hello, I have to perform a median filter on only selected elements in an array and am wondering if using a masked array will speed things up by preventing the computation of the median on those elements where it's not needed. I'm using a Fortran code to fill up a (NX,NY,NZ) array where (NZ) is