Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/continuum_features_properties.R

Function to calculate feature properties such as the area, the position of the maximum and several other parameters. This function can only be used for spectral data transformed using any kind of continuum removal (see `transformSpeclib`

).

1 |

`x` |
Object of class |

The function calculates several parameters:

*area*: The feature area is calculated by*area_{F_{i}}=∑^{max(λ)}_{k=min(λ)} BDλ,*with

*area_{F_{i}}*is the area of the feature i,*min(λ)*is the minimum wavelength of the spectrum,*max(λ)*is the maximum wavelength of the spectrum and*BD*is the band depth.*max*: Wavelength position of the maximum value observed in the feature.Parameters based on half-max values:

*lo*and*up*: Wavelength position of the*lo*wer and*up*per half-max value.*width*: Difference between wavelength positions of*up*per and*lo*wer half-max values.*gauss_lo*: Similarity of the Gauss distribution function and the feature values between the*lo*wer half-max and the*max*imum position. As similarity measurement, the root mean square error is calculated.*gauss_up*: Same as above but for feature values between the*max*imum position and the*up*per half-max.

An object of class `Specfeat`

containing the properties as (part of the) SI table.

Hanna Meyer \& Lukas Lehnert

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
data(spectral_data)
## Example calculating the areas of the features around 450nm,
## 700nm, 1200nm and 1500nm.
bd <- transformSpeclib(subset(spectral_data, season == "summer"),
method = "sh", out = "bd")
## Define features
features <- define.features(bd)
## Convert speclib to specfeat giving center wavelength of features
featureSelection <- specfeat(features, c(450,700,1200,1500))
## Calculate properties of features
featureProp <- feature_properties(featureSelection)
## See resulting feature property variables
head(SI(featureProp))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.