| read_opus {OpenSpecy} | R Documentation |
Read spectral data from Bruker OPUS binary files
Description
Read file(s) acquired with a Bruker Vertex FTIR Instrument. This function
is basically a fork of opus_read() from
https://github.com/pierreroudier/opusreader.
Usage
read_opus(
file,
share = NULL,
metadata = list(file_name = basename(file), user_name = NULL, contact_info = NULL,
organization = NULL, citation = NULL, spectrum_type = NULL, spectrum_identity = NULL,
material_form = NULL, material_phase = NULL, material_producer = NULL,
material_purity = NULL, material_quality = NULL, material_color = NULL,
material_other = NULL, cas_number = NULL, instrument_used = NULL,
instrument_accessories = NULL, instrument_mode = NULL, spectral_resolution = NULL,
laser_light_used = NULL, number_of_accumulations = NULL,
total_acquisition_time_s = NULL, data_processing_procedure = NULL,
level_of_confidence_in_identification = NULL, other_info = NULL, license =
"CC BY-NC"),
type = "spec",
digits = 1L,
atm_comp_minus4offset = FALSE
)
Arguments
file |
character vector with path to file(s). |
share |
defaults to |
metadata |
a named list of the metadata; see
|
type |
character vector of spectra types to extract from OPUS binary
file. Default is |
digits |
Integer that specifies the number of decimal places used to round the wavenumbers (values of x-variables). |
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
An OpenSpecy object.
Author(s)
Philipp Baumann, Zacharias Steinmetz, Win Cowger
See Also
read_spec() for reading .y(a)ml, .json, or .rds (OpenSpecy)
files;
read_text(), read_asp(), read_spa(),
read_spc(), and read_jdx() for text files, .asp,
.spa, .spa, .spc, and .jdx formats, respectively;
read_text() for reading .dat (ENVI) files;
read_zip() and read_any() for wrapper functions;
read_opus_raw();
Examples
read_extdata("ftir_ps.0") |> read_opus()