bin_edges

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

Bin edges of a wavelength grid: midpoints, half-extrapolated at the ends.

Parameters:

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

Return type:

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