interpolate_spectrum: Calculate spectral values at a different set of wavelengths
Description
Interpolate/re-express spectral irradiance (or other spectral quantity)
values at new wavelengths values. This is a low-level function operating
on numeric vectors and called by higher level functions in the package,
such as mathematical operators for classes for spectral data.
Usage
interpolate_spectrum(w.length.in, s.irrad, w.length.out, fill = NA, ...)
Arguments
w.length.in
numeric vector of wavelengths (nm).
s.irrad
a numeric vector of spectral values.
w.length.out
numeric vector of wavelengths (nm).
fill
a value to be assigned to out of range wavelengths.