View source: R/ir_correct_atmosphere.R
ir_correct_atmosphere | R Documentation |
ir_correct_atmosphere
takes two objects of class ir
with the same number
of spectra in each and corrects the spectra of the first object with the
spectra of the second object according to the procedure presented by
\insertCitePerez-Guaita.2013ir.
ir_correct_atmosphere(
x,
ref,
wn1,
wn2,
return_contribution = FALSE,
do_interpolate = FALSE,
start = NULL,
dw = 1,
warn = TRUE,
return_ir_flat = FALSE
)
x |
An object of class |
ref |
An object of class |
wn1 |
A numeric value representing the first wavenumber value to use as reference point \insertCitePerez-Guaita.2013ir. Examples used by \insertCitePerez-Guaita.2013;textualir are:
|
wn2 |
A numeric value representing the second wavenumber value to use as reference point \insertCitePerez-Guaita.2013ir. Examples used by \insertCitePerez-Guaita.2013;textualir are:
|
return_contribution |
A logical value indicating whether in addition to
the corrected spectra, the computed relative contribution of |
do_interpolate |
A logical value indicating if |
start |
See |
dw |
See |
warn |
A logical value indicating whether warnings about mismatching
wavenumber values should be displayed ( |
return_ir_flat |
Logical value. If |
x
corrected with the reference spectra in ref
.
x1 <-
ir_correct_atmosphere(
ir_sample_data[1:5, ], ir_sample_data[1:5, ], wn1 = 2361, wn2 = 2349
)
x2 <-
ir_correct_atmosphere(
ir_sample_data[1:5, ], ir_sample_data[1:5, ], wn1 = 2361, wn2 = 2349,
return_contribution = TRUE
)
x2$contribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.