Description Usage Arguments Value Author(s)
The functions perform the elementary arithmetic operations on the flux
values of spectra. If s2
is a spectrum sampled on a different
wavelength vector than s1
, it is first resampled. If s2
is a numeric vector, it must have the same length as s1
.
1 2 3 4 5 |
s1 |
object of class |
s2 |
object of class |
op |
One of '+', '-', '*', '/'. |
an object of class spectrum
, sampled on the same wavelength
vector as s1
When adding or subtracting spectra, their noise
vectors are
added quadratically. If s2
is a number, the noise
vector
of s1
is unchanged.
When multiplying or dividing spectra, the noise vector of s1
is
scaled by the value of s2
. This is appropriate if s2
is
some wavelength-dependent scaling (like a transmission curve), but it
is not fully general!
Oliver Czoske
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.