psmd-iberutaru / Lezargus

The accompanying data software package to the IRTF SPECTRE Spectrograph.
MIT License
0 stars 0 forks source link

Consider deprecating 1d CubicSpline interpolation for Akima1D #4

Closed psmd-iberutaru closed 3 weeks ago

psmd-iberutaru commented 9 months ago

Akima1D is another Scipy interpolating routine that provides exact point fitting while also reducing the chances of a the twice differentiable cubic splines from overshooting the fit. This is more useful with thin spectra line or otherwise sharp interpolation.

psmd-iberutaru commented 9 months ago

Currently, the cubic spline has been replaced with general splines, powered by scipy.interpolate.PchipInterpolator

This is because Akima1D does not seem to implement extrapolation yet.

psmd-iberutaru commented 5 months ago

Fix requires Scipy v 1.14.

psmd-iberutaru commented 3 weeks ago

Fixed as the Scipy build was pushed.