read_opus_univ: Read a list of Bruker OPUS spectrum binary files.

View source: R/read-opus-universal.R

read_opus_univR Documentation

Read a list of Bruker OPUS spectrum binary files.

Description

Read multiple spectral files measured with a Bruker FTIR Instrument. Files containing spectra are in OPUS binary format. read_opus_univ is a wrapper for read_opus_bin_univ())

Usage

read_opus_univ(fnames, extract = c("spc"), parallel = FALSE,
atm_comp_minus4offset = FALSE)

Arguments

fnames

List of character vectors containing full path names of spectra

extract

Character vector of spectra types to extract from file. Possible values are: "spc" (AB block in Bruker Opus software), "spc_nocomp" (Spectra before final atmospheric compensation; only present if background correction has been set in Opus), "ScSm" (Single channel spectrum of the sample), "ScRf" (Single channel spectrum of the sample), "IgSm" (Interferogram of the sample), "IgRf" (Interferogram of the reference). Default is extract = c("spc").

parallel

Logical (TRUE or FALSE indicating whether files are read in parallel (multiple processors or multiple cores)). Default is parallel = FALSE. If TRUE a parallel backend needs to be registered, e.g. by using the doParallel package.

atm_comp_minus4offset

Logical whether spectra after atmospheric compensation are read with an offset of -4 bites from Bruker OPUS files. Default is FALSE.

Value

out List spectra and metadata (parameters) extracted from Bruker OPUS spectrometer files. List names are the names of the OPUS files whose spectral data were extracted.


philipp-baumann/simplerspec documentation built on Oct. 3, 2023, 12:13 p.m.