wavelength: Handling wavelength and fwhm

wavelengthR Documentation

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

Speclib

Examples

data(spectral_data)

wavelength(spectral_data)

hsdar documentation built on March 18, 2022, 6:35 p.m.