[Numpy-discussion] interpolation in numpy

2009-07-09 Thread Thomas Hrabe
Hi all, I am not a newbie to python and numpy, but however, I kinda do not find a proper solution for my interpolation problem without coding it explicitly myself. All I want to do is to increase the resolution of an tree dimensional array. I have a volume 'a' a = numpy.random.rand(3,3,3)

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Citi, Luca
Hi, you can have a look at the method interp2d of scipy.interpolate. I think it is what you are looking for. Best, Luca ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Zachary Pincus
You might want also to look into scipy.ndimage.zoom. Zach On Jul 9, 2009, at 9:42 AM, Thomas Hrabe wrote: Hi all, I am not a newbie to python and numpy, but however, I kinda do not find a proper solution for my interpolation problem without coding it explicitly myself. All I want to do

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Joe Kington
scipy.ndimage.zoom is exactly what you're looking for, as Zach Pincus already said. As far as I know, numpy doesn't have any 3D interpolation routines, so you'll have to install scipy. Interp2d will only interpolate slices of your data, not the whole volume. -Joe On Thu, Jul 9, 2009 at 8:42 AM,

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Thomas Hrabe
Yep, thats the one. Unfortunately, installing scipy makes my project dependant on another package. However, I installed it and it works... Thank you 2009/7/9 Joe Kington jking...@wisc.edu: scipy.ndimage.zoom is exactly what you're looking for, as Zach Pincus already said. As far as I know,

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Nadav Horesh
The ndimage package can be accessed as numpy.numarray.nd_image. scipy is not needed Nadav -הודעה מקורית- מאת: numpy-discussion-boun...@scipy.org בשם Thomas Hrabe נשלח: ה 09-יולי-09 17:57 אל: Discussion of Numerical Python נושא: Re: [Numpy-discussion] interpolation in numpy Yep

Re: [Numpy-discussion] interpolation in numpy

2009-07-09 Thread Robert Kern
2009/7/9 Nadav Horesh nad...@visionsense.com: The ndimage package can be accessed as numpy.numarray.nd_image. scipy is not needed numpy.numarray.nd_image just imports from scipy.ndimage or a standalone ndimage if you have built it so. numpy does not contain the ndimage code. -- Robert Kern