Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wavelength

Handling wavelength and fwhm


Description

Methods to access and set wavelength (band center) and full-width-half-max (fwhm) values for class Speclib.

Usage

## S4 method for signature 'Speclib'
wavelength(object)

## S4 replacement method for signature 'Speclib,data.frame'
wavelength(object) <- value

## S4 replacement method for signature 'Speclib,numeric'
wavelength(object) <- value

## S4 method for signature 'Speclib'
fwhm(object)

## S4 replacement method for signature 'Speclib,numeric'
fwhm(object) <- value

Arguments

object

Object of class Speclib.

value

Numeric vector or data.frame containing wavelength values. Must always be in nm!

Details

Wavelength (band center) and full-width-half-max (fwhm) values are given for each spectral band. The wavelength is mandatory for creation of Speclib and is used within the whole functionality of the package (e.g., noiseFiltering, spectralResampling, vegindex, nri, plot.Speclib, mask).

Value

For wavelength<- and fwhm<-, the updated object. Otherwise a numeric vector of the wavelength and fwhm-values in nm is returned.

Author(s)

Lukas Lehnert

See Also

Examples

data(spectral_data)

wavelength(spectral_data)

hsdar

Manage, Analyse and Simulate Hyperspectral Data

v1.0.3
GPL
Authors
Lukas W. Lehnert [cre, aut] (<https://orcid.org/0000-0002-5229-2282>), Hanna Meyer [ctb], Joerg Bendix [ctb]
Initial release
2020-08-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.