[SciPy-User] Spline interpolation using splrep,splev

Pauli Virtanen pav at iki.fi
Mon Jun 27 11:02:30 EDT 2011


Mon, 27 Jun 2011 19:35:46 +0530, Jaidev Deshpande wrote:
> I'm using scipy.interpolate.splrep and splev to construct cubic splines.
> These functions are part of the 'fitpack' module, and they raise an
> error when the number of nodes to be interpolated are less than the
> order of the spline.

The short answer is that this is a limitation of the underlying Fortran
library:

http://www.netlib.org/dierckx/curfit.f

One way to find the long answer (I don't know it) is to read 
the papers referenced there, or Dierckx's book on FITPACK.




More information about the SciPy-User mailing list