[SciPy-User] 2-D data interpolation

Darcoux Christine bouloumag at gmail.com
Thu May 31 09:18:10 EDT 2012


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



More information about the SciPy-User mailing list