[Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread Christian K .
Hi, I am looking for an elegant and fast way to fill the voids of a 2d array with neighbouring values. The array's size can be up to (1000, 1000) and its values are slowly varying around a mean value. What I call voids are values which are far from the mean value (+- 80%). A void usually extend

Re: [Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread Zachary Pincus
Hi Christian, Check out this discussion from a little while ago on a very similar issue (but in 3d): http://www.nabble.com/Help-with-interpolating-missing-values-from-a-3D-scanner-td21489413.html Most of the suggestions should be directly applicable. Zach On Apr 6, 2009, at 9:01 AM, Christia

Re: [Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread Jim Vickroy
Zachary Pincus wrote: Hi Christian, Check out this discussion from a little while ago on a very similar issue (but in 3d): http://www.nabble.com/Help-with-interpolating-missing-values-from-a-3D-scanner-td21489413.html Most of the suggestions should be directly applicable. Zach Hi Christ

Re: [Numpy-discussion] replace voids in 2d dat with nearest neighbour value

2009-04-06 Thread frank wang
Hi, I have a big 2 column data file where the data are repeated either 5 or 6 times. Are there any quick way to remove the duplicated data? Thanks Frank _ Rediscover HotmailĀ®: Get e-mail storage that grows with you. htt