getWavelengths: Get Wavelengths

getWavelengths,aquap_data-methodR Documentation

Get Wavelengths

Description

Get a numeric vector containing the wavelengths of a given dataset.

Usage

## S4 method for signature 'aquap_data'
getWavelengths(object)

## S4 method for signature 'aquap_set'
getWavelengths(object)

Arguments

object

An object of class 'aquap_data' as produced e.g. by gfd.

Details

The wavelengths are simply extracted from the column names of the NIR-data.

Value

A numeric vector containing the wavelengths of the NIR-data of the object.

See Also

Other Extract Elements: getHeader(), getcd(), getcm(), siWl(), siWlg()

Examples

## Not run: 
fd <- gfd()
wls <- getWavelengths(fd)
####
cu <- gdmm(fd)
wls <- getWavelengths(cu[[1]]) # extract the wavelengths from the dataset 
# of the first set in the cube

## End(Not run)

bpollner/aquap2 documentation built on March 29, 2024, 7:33 a.m.