pybsm.radiance.functional.resample_by_wavelength

pybsm.radiance.functional.resample_by_wavelength(*, wavelengths: ndarray, values: ndarray, new_wavelengths: ndarray) ndarray

Resamples arrays that are input as a function of wavelength.

Parameters:
  • wavelengths – array of wavelengths (m)

  • values – array of values to be resampled (arb)

  • new_wavelengths – the desired wavelength range and step size (m)

Returns:

new_values

array of values resampled to match new_wavelengths; extrapolated values are set to 0

Raises:
ValueError:

if the length of wavelengths array and values array are not equal