Re: [Numpy-discussion] Efficient scaling of array

2009-05-04 Thread Johannes Bauer
Zachary Pincus schrieb: > scipy.ndimage.zoom (and related interpolation functions) would be a > good bet -- different orders of interpolation are available, too, > which can be useful. Thanks a lot - exactly what I was looking for! Kind regards, Johannes __

Re: [Numpy-discussion] Efficient scaling of array

2009-05-04 Thread Zachary Pincus
scipy.ndimage.zoom (and related interpolation functions) would be a good bet -- different orders of interpolation are available, too, which can be useful. Zach On May 4, 2009, at 11:40 AM, Johannes Bauer wrote: > Hello list, > > is there a possibility to scale an array by interpolation, >

[Numpy-discussion] Efficient scaling of array

2009-05-04 Thread Johannes Bauer
Hello list, is there a possibility to scale an array by interpolation, automatically? For illustration a 1D-example would be an array of size 5, which is scaled to size 3: before: [ 1, 2, 3, 4, 5 ] 1/1 2/3 1/3 1 1/3 2/3 1 after : [ 2.