Learn R Programming

cdom (version 0.1.0)

cdom_slope_ratio: Calculate the slope ratio (SR) from an absorption spectra.

Description

Calculate the slope ratio (SR) from an absorption spectra.

Usage

cdom_slope_ratio(wl, absorbance)

Arguments

wl
The wavelength vector.
absorbance
The absorbance vector.

Value

  • The value of the slope ratio.

Details

Calculate the slope ratio (SR) as defined by Helms et al. (2008).

$$SR = \frac{S_{275-295}}{S_{350-400}}$$

References

http://www.aslo.org/lo/toc/vol_53/issue_3/0955.html

Examples

Run this code
data("spectra")

cdom_slope_ratio(spectra$wavelength, spectra$spc1)

Run the code above in your browser using DataLab