This function gives the result of interpolating spectral data from the original set of wavelengths to a new one.
1 2 3 4
numeric array of wavelengths (nm)
a value to be assigned to out of range wavelengths
an object of class "generic_mspct"
length.out it is a numeric value, then gives the number of
rows in the output, if it is
NULL, the values in the numeric vector
w.length.out are used. If both are not
NULL then the range of
length.out are used to generate a vector of
wavelength. A value of
fill prevents extrapolation.
NULL the input
is returned as is. If
w.length.out has length equal to zero, zero
rows from the input are returned.
A new spectral object of the same class as argument
fill = NA fills extrpolated values with NA. Giving NULL as
fill deletes wavelengths outside the input data range from the
returned spectrum. A numerical value can be also be provided as fill. This function calls
interpolate_spectrum for each non-wavelength column in the input spectra object.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.