[SciPy-User] 2-D data interpolation

David Baddeley david_baddeley@yahoo.com...
Thu May 31 14:44:38 CDT 2012


It's a bit of a special case, but if your starting values are already on a regular grid scipy.ndimage.map_coordinates is what you're after.

Cheers,
David


------------------------------
On Fri, Jun 1, 2012 1:18 AM NZST Darcoux Christine wrote:

>Hi,
>
>I am converting a matlab code to python and I am looking for a
>function like interp2 [1] for 2-D data interpolation.
>
>My matlab code has calls like
>
>M = interp2(x,y,z, xi,yi, 'cubic')
>
>where x, y and z describe a surface function. The interp2 function
>returns a matrix M corresponding to the elements of xi and yi and
>determined by cubic interpolation.
>
>Any help would be greatly appreciated,
>
>[1] http://www.mathworks.com/help/techdoc/ref/interp2.html
>_______________________________________________
>SciPy-User mailing list
>SciPy-User@scipy.org
>http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list