View source: R/spct.insert.spct.hinges.r
insert_spct_hinges | R Documentation |
Insert new wavelength values into a spectrum interpolating the corresponding spectral data values.
insert_spct_hinges(spct, hinges = NULL, byref = FALSE)
spct |
an object of class "generic_spct" |
hinges |
numeric vector of wavelengths (nm) at which the s.irrad should be inserted by interpolation, no interpolation is indicated by an empty vector (numeric(0)) |
byref |
logical indicating if new object will be created by reference or by copy of spct |
a generic_spct or a derived type with variables w.length
and
other numeric variables.
Inserting wavelengths values "hinges" immediately before and after a discontinuity in the SWF, greatly reduces the errors caused by interpolating the weighted irradiance during integration of the effective spectral irradiance. This is specially true when data has a large wavelength step size.
insert_spct_hinges(sun.spct, c(399.99,400.00,699.99,700.00))
insert_spct_hinges(sun.spct,
c(199.99,200.00,399.50,399.99,400.00,699.99,
700.00,799.99,1000.00))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.