read_opus: Read Bruker OPUS binary files

Description Usage Arguments Details Value

Description

This function is a wrapper around read_opus_single to import multiple OPUS binary files; supports reading meta data stored in the text information data block. At the current state, no other information (e.g. instrumental parameters) such as INS, LWN, HUM, SRC, BMS, ZFF, DAT, TIM are processed. Consider this function as experimental and sanity check imported spectra.

Usage

1
read_opus(file_paths, scale_y = TRUE, read_info = FALSE, wl = 1)

Arguments

file_paths

a character vector of file paths to Bruker OPUS binary files

scale_y

logical; use the y scaling factor provided within the binary file.

read_info

logical; read info stored in the text information data block.

wl

numeric; either of length one giving the index of the spectrum to use the associated wavelength vector, a numeric vector of length >1 specifying a new wavelength vector, NULL to use a merged wavelength vector or "interpolate" to interpolate missing values after using the merged vector.

Details

When files to import don't share common wavelength vectors, a collapsed hyperSpec object (having a wavelength vector merged from all the individual vectors) may become very large with a lot of missing values. read_opus() can interpolate the individual spectra onto a common wavelength vector prior collapsing, either by choosing the wavelength vector of one of the imported files (giving a single integer) or by providing a new wavelength vector. Alternatively, if wl is NULL, the merged wavelength vector is used, potentially resulting in a sparse spectral matrix. If set to "interpolate" the missing values are interpolated after using the merged vector.

Value

a hyperSpec object.


konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.