feature_properties: Calculation of properties of features

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

View source: R/continuum_features_properties.R

Description

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).

Usage

1

Arguments

x

Object of class Specfeat

Details

The function calculates several parameters:

The typical workflow to obtain feature properties is to first calculate the band depth transformSpeclib, then isolate the absorption features specfeat. Optionally, cut_specfeat allows to cut the features at specified wavelengths. Finally use feature_properties to retrieve characteristics of the features.

Value

An object of class Specfeat containing the properties as (part of the) SI table.

Author(s)

Hanna Meyer & Lukas Lehnert

See Also

specfeat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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")

## Convert speclib to specfeat giving center wavelength of features
featureSelection <- specfeat(bd, c(450,700,1200,1500))

## Calculate properties of features
featureProp <- feature_properties(featureSelection)

## See resulting feature property variables
head(SI(featureProp))

hsdar documentation built on Dec. 14, 2017, 5:16 p.m.