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:

Value

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

Author(s)

Hanna Meyer \& Lukas Lehnert

See Also

define.features, specfeat

Examples

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

hsdar documentation built on Nov. 17, 2017, 4:35 a.m.