[SciPy-User] 2-D data interpolation

David Baddeley david_baddeley at yahoo.com.au
Thu May 31 15:44:38 EDT 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 at scipy.org
>http://mail.scipy.org/mailman/listinfo/scipy-user




More information about the SciPy-User mailing list