user2329125
user2329125

Reputation:

Equivalent of matlabs interp2 spline in scipy/numpy

I am currently converting our matlab code base to python 3.5 with scipy/numpy.

The line i am currently struggling with contains the interp2 function with spline as the method. I generally am able to find the counterpart in the world of scipy, but the description of the spline method is too much for me

The interpolation is based on a cubic spline using not-a-knot end conditions.

What interpolate method from scipy/numpy should I use to get the same effect?

Upvotes: 1

Views: 1331

Answers (1)

B. M.
B. M.

Reputation: 18668

I suggest splrep . scipy.interpolate.splrep(x,y,k=3,task=-1) seems to do the same job. interp2d is a wrapper with less parameters.

Upvotes: 1

Related Questions