-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support OPUS files with normalization in AB block #81
Comments
Hi @Debora6991 , could you upload your example OPUS file, e.g. "A1.1.0" |
Here it is.
Il giorno lun 20 mar 2023 alle ore 11:09 Philipp Baumann <
***@***.***> ha scritto:
… Hi @Debora6991 <https://github.com/Debora6991> , could you upload your
example OPUS file, e.g. "A1.1.0"
—
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMCFBH52EMYWUV4B2NCMZNLW5AUEBANCNFSM6AAAAAAWAYQ56U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Debora Casagrande Pierantoni
|
Hi Debora, which email did you send it to? |
I answered directly by email because here the format file is not allowed. this is the e-mail address that appears Is this right? where should I attach the .0 OPUS file? |
gosh stupid github, it used to support random binary files ;-) can you please send an email to spectral-cockpit at protonmail dot com ? thanks |
e-mail sent. |
got it! I'll give it a try this week. Could you please add screenshots of the OPUS software view (as described in informative message?) thanks (ATM do not have a direct access to the software) |
Can you please add some extra info of what I should screenshot in OPUS
(6.5)?
Il giorno lun 20 mar 2023 alle ore 16:12 Philipp Baumann <
***@***.***> ha scritto:
… got it! I'll give it a try this week. Could you please add screenshots of
the OPUS software view (as described in informative message?) thanks
—
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMCFBH2WUA3ZVWSNGBEKXNTW5BXV3ANCNFSM6AAAAAAWAYQ56U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Debora Casagrande Pierantoni
|
would be nice to have all spectral blocks screenshotted (right click on file...) :-) => here is a brief example: #58 |
I want to just make sure everything we parse is double-checked on the OPUS side. |
I screenshotted all spectral blocks, here they are
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
[image: image.png]
Il giorno lun 20 mar 2023 alle ore 18:14 Philipp Baumann <
***@***.***> ha scritto:
… I want to just make sure everything we parse is double-checked on the OPUS
side.
—
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMCFBH4HSBZG4SVMSRY72GTW5CF7FANCNFSM6AAAAAAWAYQ56U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Debora Casagrande Pierantoni
|
Hi Debora, I do not see any images in your response above. Can you send them to me via mail? |
alternatively, can you give me a brief info here what all the block names are? I need an extra block type if you want your setting to be supported. |
@Debora6991 I think you did an email, but I did not receive, because it went to some GitHub address. If you want, I can post screenshots the file settings here? Respectively, I am in Zurich today early evening and could have access to OPUS software in a lab at ETH Zürich. |
I sent the mail again (spectral-cockpit protonmail....), did it work?
…On Thu, Mar 23, 2023, 11:35 Philipp Baumann ***@***.***> wrote:
@Debora6991 <https://github.com/Debora6991> I think you did an email, but
I did not receive, because it went to some GitHub address. If you want, I
can post screenshots the file settings here?
—
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMCFBHY3JOTBO5KD24A3BMDW5QRQHANCNFSM6AAAAAAWAYQ56U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
awesome, it got it. Will keep you posted. |
Yes, exactly.
…On Fri, Mar 24, 2023, 09:35 Philipp Baumann ***@***.***> wrote:
@Debora6991 <https://github.com/Debora6991> from the screenshot I see you
did vector normalization. I think I have seen this kind of mathematical
black-box preprocessing used by Bruker before. ;-) Is it a vector
normalization with L1 norm right? I think it is also multiplied with -1.
—
Reply to this email directly, view it on GitHub
<#81 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMCFBHZDA5YAPUB3TFP65L3W5VMGLANCNFSM6AAAAAAWAYQ56U>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
just a short info to let you know. I am currently underway with my bike travelling. Eventually I have time I might push the necessary changes, but it can also be June until I am able to do so. Cheers |
Hi @Debora6991 finally there is a fix for your issue :-) library("opusreader2")
file <- "inst/extdata/new_data/issue81_A1.1.0"
data <- read_opus(dsn = file)
names(data[[1]])
#> [1] "basic_metadata" "ab_no_atm_comp_data_param"
#> [3] "ab_no_atm_comp" "sc_sample_data_param"
#> [5] "sc_sample" "sc_ref_data_param"
#> [7] "sc_ref" "optics"
#> [9] "optics_ref" "fourier_transformation"
#> [11] "sample" "acquisition"
#> [13] "instrument_ref" "instrument"
#> [15] "lab_and_process_param_raw" "info_block"
#> [17] "quality_test_report" "history"
data[[1]]$quality_test_report
#> $block_type
#> [1] 15
#>
#> $channel_type
#> [1] 16
#>
#> $text_type
#> [1] 96
#>
#> $additional_type
#> [1] 0
#>
#> $offset
#> [1] 28440
#>
#> $next_offset
#> [1] 31200
#>
#> $chunk_size
#> [1] 2760
#>
#> $block_type_name
#> [1] "quality_test_report"
#>
#> $parameters
#> $parameters$BID
#> $parameters$BID$parameter_name
#> [1] "BID"
#>
#> $parameters$BID$parameter_name_long
#> NULL
#>
#> $parameters$BID$parameter_value
#> [1] 6295567
#>
#> $parameters$BID$parameter_type
#> [1] "int"
#>
#>
#> $parameters$NRP
#> $parameters$NRP$parameter_name
#> [1] "NRP"
#>
#> $parameters$NRP$parameter_name_long
#> NULL
#>
#> $parameters$NRP$parameter_value
#> [1] 1
#>
#> $parameters$NRP$parameter_type
#> [1] "int"
#>
#>
#> $parameters$SIZ
#> $parameters$SIZ$parameter_name
#> [1] "SIZ"
#>
#> $parameters$SIZ$parameter_name_long
#> NULL
#>
#> $parameters$SIZ$parameter_value
#> [1] 124
#>
#> $parameters$SIZ$parameter_type
#> [1] "int"
#>
#>
#> $parameters$TIT
#> $parameters$TIT$parameter_name
#> [1] "TIT"
#>
#> $parameters$TIT$parameter_name_long
#> NULL
#>
#> $parameters$TIT$parameter_value
#> [1] "Quality Test Report"
#>
#> $parameters$TIT$parameter_type
#> [1] "str"
#>
#>
#> $parameters$E00
#> $parameters$E00$parameter_name
#> [1] "E00"
#>
#> $parameters$E00$parameter_name_long
#> NULL
#>
#> $parameters$E00$parameter_value
#> [1] "Quality Test Report"
#>
#> $parameters$E00$parameter_type
#> [1] "str"
#>
#>
#> $parameters$F00
#> $parameters$F00$parameter_name
#> [1] "F00"
#>
#> $parameters$F00$parameter_name_long
#> NULL
#>
#> $parameters$F00$parameter_value
#> [1] 2012
#>
#> $parameters$F00$parameter_type
#> [1] "int"
#>
#>
#> $parameters$Z00
#> $parameters$Z00$parameter_name
#> [1] "Z00"
#>
#> $parameters$Z00$parameter_name_long
#> NULL
#>
#> $parameters$Z00$parameter_value
#> [1] 748
#>
#> $parameters$Z00$parameter_type
#> [1] "int"
#>
#>
#>
#> attr(,"class")
#> [1] "parameter" Created on 2023-11-12 with reprex v2.0.2 |
It was a new parameter block, calling |
Hi!
I obtain this error when I try to read my OPUS files both with the single and multiple read approach,
I am using an old TENSOR 27 FTIR spectrometer, equipped with HTS-XT accessory (OPUS 6.5)
What should I do?
The text was updated successfully, but these errors were encountered: