I have a dataset (stellar spectrum) with around 4000 points. I want to interpolate the x and y data (same length) with this new list, x_new which has nearly 17000 points.
I have found numpy.interp thas does this job, except it is a piecewise linear interpolation. I want it to be smooth.
Any suggestions?
The scipy.interpolate.interp1d has a
kindparameter that can be set to e.g."cubic".Instad of supplying the x-values you wish to interpolate on directly to this function, you do it like this:
This is a scipy interpolation tutorial that might be helpful.