| read_opus_raw {OpenSpecy} | R Documentation |
Read a Bruker OPUS spectrum binary raw string
Description
Read single binary acquired with an Bruker Vertex FTIR Instrument
Usage
read_opus_raw(rw, type = "spec", atm_comp_minus4offset = FALSE)
Arguments
rw |
a raw vector |
type |
character vector of spectra types to extract from OPUS binary
file. Default is |
atm_comp_minus4offset |
logical; whether spectra after atmospheric
compensation are read with an offset of -4 bytes from Bruker OPUS
files. Default is |
Details
The type of spectra returned by the function when using
type = "spec" depends on the setting of the Bruker instrument: typically,
it can be either absorbance or reflectance.
The type of spectra to extract from the file can also use Bruker's OPUS software naming conventions, as follows:
-
ScSmcorresponds tosc_sample -
ScRfcorresponds tosc_ref -
IgSmcorresponds toig_sample -
IgRfcorresponds toig_ref
Value
A list of 10 elements:
metadataa
data.framecontaining metadata from the OPUS file.specif
"spec"was requested in thetypeoption, a matrix of the spectrum of the sample (otherwise set toNULL).spec_no_atm_compif
"spec_no_atm_comp"was requested in thetypeoption, a matrix of the spectrum of the sample without atmospheric compensation (otherwise set toNULL).sc_sampleif
"sc_sample"was requested in thetypeoption, a matrix of the single channel spectrum of the sample (otherwise set toNULL).sc_refif
"sc_ref"was requested in thetypeoption, a matrix of the single channel spectrum of the reference (otherwise set toNULL).ig_sampleif
"ig_sample"was requested in thetypeoption, a matrix of the interferogram of the sample (otherwise set toNULL).ig_refif
"ig_ref"was requested in thetypeoption, a matrix of the interferogram of the reference (otherwise set toNULL).wavenumbersif
"spec"or"spec_no_atm_comp"was requested in thetypeoption, a numeric vector of the wavenumbers of the spectrum of the sample (otherwise set toNULL).wavenumbers_sc_sampleif
"sc_sample"was requested in thetypeoption, a numeric vector of the wavenumbers of the single channel spectrum of the sample (otherwise set toNULL).wavenumbers_sc_refif
"sc_ref"was requested in thetypeoption, a numeric vector of the wavenumbers of the single channel spectrum of the reference (otherwise set toNULL).
Author(s)
Philipp Baumann and Pierre Roudier