Re: [Numpy-discussion] Downsampling array, retaining min and max values in window

2007-07-30 Thread Travis Oliphant
Matthieu Brucher wrote: > Hi, > > I think you should look into scipy.ndimage which has minimum_filter > and maximum_filter > > Matthieu > > 2007/7/24, Ludwig M Brinckmann < [EMAIL PROTECTED] > >: > > Hi there, > > I have a large array, lets say 4 * 512, which

Re: [Numpy-discussion] Downsampling array, retaining min and max values in window

2007-07-29 Thread Matthieu Brucher
Hi, I think you should look into scipy.ndimage which has minimum_filter and maximum_filter Matthieu 2007/7/24, Ludwig M Brinckmann <[EMAIL PROTECTED]>: > > Hi there, > > I have a large array, lets say 4 * 512, which I need to downsample by > a factor of 4 in the y direction, by factor 3 in t

[Numpy-discussion] Downsampling array, retaining min and max values in window

2007-07-28 Thread Ludwig M Brinckmann
Hi there, I have a large array, lets say 4 * 512, which I need to downsample by a factor of 4 in the y direction, by factor 3 in the x direction, so that my resulting arrays are 1 * 170 (or 171 this does not matter very much) - but of all the values I will need to retain in the downsample