Function isolates absorption features from band depth or ratio transformed reflectance spectra.
specfeat(x, FWL, tol = 1.0e-7)
Object of class
A vector containing one wavelength included in each feature to be isolated, e.g. the major absorption features. Features which include these specified wavelengths will be isolated.
The tolerance of the band depth which defines a wavelength as a start or end point of a feature. Usually a band depth of 0 or a ratio of 1 indicates feature limits, however, better results are achieved if slightly deviating values are tolerated.
A feature is defined as the part of the spectrum between two fix points in the transformed spectra (band depth values of 0). This function separates features at wavelengths of interest according to this rule.
Hence it allows a subsequent characterization of the features of interest, e.g. via
feature_properties or visual inspection via
The typical workflow to obtain feature properties is to first calculate
the band depth
transformSpeclib, then isolate the absorption features
cut_specfeat allows to cut the features at specified wavelengths. Finally use
feature_properties to retrieve characteristics of the features.
An object of class
Specfeat containing the isolated features.
Hanna Meyer and Lukas Lehnert
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
data(spectral_data) ## Transform speclib bd <- transformSpeclib(spectral_data, method = "sh", out = "bd") ##Example to isolate the features around 450nm, 700nm, 1200nm and 1500nm. featureSelection <- specfeat(bd, c(450,700,1200,1500)) ## Plot features plot(featureSelection, fnumber = 1:4) ## Advanced plotting example plot(featureSelection, fnumber = 1:4, stylebysubset = "season") plot(featureSelection, fnumber = 1:4, stylebysubset = "season", changecol = FALSE, changetype = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.