interp_conserve_c

grizli.utils_numba.interp.interp_conserve_c(x, xp, yp, left=0, right=0, integrate=0)[source]

Interpolate spectrum conserving flux

Parameters
xarray-like

Coarse ordinal axis (e.g., wavelength)

xp, yparray-like, array-like

High resolution arrays, (e.g., wavelength and flux density)

left, rightfloat, float

Values to use for extrapolating off the edges of xp

integratebool

Result is integrated across dx

Returns
outyarray-like

Interpolated array