resample_flux

nyx.spectra.resample.resample_flux(wvls_in, flux_in, wvls_out, method='conserve')[source]

Resample flux from one wavelength grid to another.

Parameters:
  • wvls_in (array-like) – Source wavelengths in nm.

  • flux_in (array-like) – Source flux, 1-D or (batch, wavelength).

  • wvls_out (array-like) – Target wavelengths in nm.

  • method (str) – 'conserve' or 'linear'.

Return type:

jax.Array