cdom_spectral_curve {cdom}R Documentation

Calculate the spectral curve of CDOM spectra.

Description

Calculate the spectral curve of CDOM spectra has proposed by Loiselle et al. 2009.

Usage

cdom_spectral_curve(wl, absorbance, interval = 21, r2threshold = 0.8)

Arguments

wl

The wavelength vector.

absorbance

The absorbance vector.

interval

The interval used to claculate each slope (default = 21 nm).

r2threshold

The r2 threshold that determines if a slope is "valide". The default value is 0.8 meaning that the determination coefficient of the regression between log-transformed data and wavelength should be >= 0.8.

Value

A dataframe containing the centered wavelength, the calculated slope and the determination coefficient of the linear regression used to claculate the slope.

References

http://doi.wiley.com/10.4319/lo.2009.54.2.0590

Examples

data(spectra)

res <- cdom_spectral_curve(spectra$wavelength, spectra$spc2)
plot(res$wl, res$s, type = "l")

[Package cdom version 0.1.0 Index]