siWl: Isolate single wavelength

View source: R/gen_general.r

siWlR Documentation

Isolate single wavelength

Description

Generate a dataset with a single wavelength.

Usage

siWl(dataset, wl, getMax = FALSE)

Arguments

dataset

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

wl

Numeric length one. The

getMax

Logical. Set to 'TRUE' to isolate the wavelength with the highest sum of absorbtion values.

Details

Provide the wavelength that should remain in the dataset in the argument wl. It is not ncecessary to exactly know the desired wavelength – if there is no direct match with the wavelength, the next best hit will be taken.

See Also

aquap_data-methods, selectWls

Other Extract Elements: getHeader(), getWavelengths,aquap_data-method, getcd(), getcm(), siWlg()

Examples

## Not run: 
fd <- gfd()
dataset_single <- siWl(fd, 1300) # to only leave wavelength 1300
dataset_single2 <- siWl(fd, getMax=TRUE) # to look for the wavelength with 
# highest sum of absorbtion values

## End(Not run)

bpollner/aquap2 documentation built on June 29, 2024, 5:21 p.m.