bin_widths

nyx.spectra.resample.bin_widths(wvls)[source]

Width of each bin of a wavelength grid: the per-nm quadrature weight.

Parameters:

wvls (array-like) – Strictly increasing wavelength grid, at least two points.

Return type:

jax.Array, shape (len(wvls),)