nm_to_cm1

sitelle.utils.nm_to_cm1(spectrum, nm_axis, out_axis)

Interpolates a spectrum from a wavelength axis to a wavenulber axis

Parameters:
  • spectrum (1D ndarray) – Input spectrum
  • nm_axis (1D ndarray) – Wavelength axis in Angstroms on which the spectrum is defined
  • out_axis (1D ndarray) – Wavenumber axis in cm-1 on which we want the spectrum to be interpolated
Returns:

out_spec – Interpolated spectrum

Return type:

1D ndarray