adj_wave: Adjust wavelength to wavenumbers for Raman

View source: R/adj_wave.R

adj_waveR Documentation

Adjust wavelength to wavenumbers for Raman

Description

Functions for converting between wave* units.

Usage

adj_wave(x, ...)

## Default S3 method:
adj_wave(x, laser, ...)

## S3 method for class 'OpenSpecy'
adj_wave(x, laser, ...)

Arguments

x

an OpenSpecy object with wavenumber units specified as wavelength in nm or a wavelength vector.

laser

the wavelength in nm of the Raman laser.

...

additional arguments passed to submethods.

Value

An OpenSpecy object with new units converted from wavelength to wavenumbers or a vector with the same conversion.

Author(s)

Win Cowger, Zacharias Steinmetz

Examples

data("raman_hdpe")
raman_wavelength <- raman_hdpe
raman_wavelength$wavenumber <- (-1*(raman_wavelength$wavenumber/10^7-1/530))^(-1)
adj_wave(raman_wavelength, laser = 530)
adj_wave(raman_wavelength$wavenumber, laser = 530)


OpenSpecy documentation built on Sept. 14, 2024, 9:07 a.m.