pierreroudier / opusreader

Reading OPUS binary files in R
GNU General Public License v3.0
4 stars 5 forks source link

Spectra are not correctly read when atmospheric compensation has been done in OPUS #18

Closed philipp-baumann closed 2 years ago

philipp-baumann commented 3 years ago

devtools::install_github("pierreroudier/opusreader", force = TRUE)

library("opusreader")

file <- "data/WSL_Pr772_H3_CHJ1.2_B1.0"

s1 <- opus_read(file)
s2 <- simplerspec::read_opus_univ(fnames = file)

# spectra are wrong (very high number)
s1$spec
s2[[1]]$spc

q()

devtools::install_github("Spectra-InfRa/opusreader")

library("opusreader")

s1 <- opus_read(file)

# spectra are correctly read after commit #faafd7f
s1$spec
philipp-baumann commented 3 years ago

please see commit faafd7f

pierreroudier commented 2 years ago

Closing after commit https://github.com/pierreroudier/opusreader/commit/faafd7f7b06c8b9e01abbf4b8485d1fac1d5ef37