read_opus | R Documentation |
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.
read_opus(
file,
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
)
file |
character vector with path to file(s). |
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 |
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:
ScSm
corresponds to sc_sample
ScRf
corresponds to sc_ref
IgSm
corresponds to ig_sample
IgRf
corresponds to ig_ref
An OpenSpecy
object.
Philipp Baumann, Zacharias Steinmetz, Win Cowger
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()
;
read_extdata("ftir_ps.0") |> read_opus()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.