channel: Get the channel numbers of DRIFT-spectrum

Description Usage Arguments Value See Also Examples

View source: R/drift_channel.R

Description

Get the channel numbers for appropriate wave numbers in the scale of the given object of S3-class drift. The function is a simple backward approximation wavenumber - channel.

Usage

1
channel(x, wn)

Arguments

x

An object of S3-class drift.

wn

Numeric vector of wavenumbers for which channel numbers should be determined in the DRIFT-spectrum

Value

Numeric vector of channel numbers which are interpolated values of indicies.

See Also

Other drift: as.data.frame.drift(), cbind.drift(), coal_drift(), diff.drift(), median.drift(), plot.drift(), read.drift(), slice(), write.drift()

Examples

1
2
3
4
5
 s <- coal_drift()

 # Get channels of CO2 absorption:
 co2 <- channel(s, c(2268:2277, 2399:2412))
 print(co2)

omega1x/spectrotest documentation built on Oct. 1, 2020, 4 p.m.