Closed vedina closed 1 month ago
wish list
spline = Akima1DInterpolator(spe.x, spe.y) y = np.zeros_like(target_x) within_range = (self.x4search >= spe.x.min()) & (self.x4search <= spe.x.max()) # interpolation only zeroes otherwise y[within_range] = spline(target_x[within_range]) spe_spline = rc2.spectrum.Spectrum(x=target_x,y=y)
Please make sure that splines are not extrapolated beyond original spectrum range - as in the code example above
wish list