-
Notifications
You must be signed in to change notification settings - Fork 35
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
Unreadable measurement #15
Comments
I've got the same issue recently. The following fixed it: PR #21 Below is how your files are read with spectrochempy (which uses brukeropusreader), with this fix.
|
have you guys been thinking of reading the magic bytes with spectral type numbers and offsets in the header? This would probably universally fix such problems as above. |
Thank you for the tip, I will look at this ! |
I have been thinking of working on that based on some earlier python package. So if you are interested on working jointly on some stuff, just let me know :-) |
That would be great. I don't know much about the opus format -- this is why I use brukeropusreader -- , but will be glad to help if I can. Best, |
Hi Arnaud |
We for know call this bit of information in the header |
Hi Philipp, Thank you very much for sharing. On our side we have fixed an error when using brukeropusreader with files containing additional informations on the 'raw' AB spectrum (single channel spectra, interferograms, and acquisition parameters of the sample and reference). our fix is here: The qed/brukerpousreader repository has not been updated since a while now. If this persists, and if others are interested, I could work on a python implementation of opusreader2 :-). Best regards |
Hi Arnaud, That is great to hear. With your latest commit we will be able to get the phase spectrum, which we will happily implement soon :-) It really looks like qed.ai is not actively maintaining the package anymore. Maybe a quick email can resolve? otherwise really like the idea of opusreader2 in python! Cheers, |
Great to see that there is some active development still going on! Do you have any plans on releasing an updated opusreader package on pip or conda in the near future? @philipp-baumann @atravert |
I recently published a new package that can read OPUS files. It is able to read the "unreadable.0000" file (absorbance, reference, and sample spectra as well as standard metadata). However, there are two mysterious blocks in this file that do not have any block type information stored. I'm guessing this has to do with the integral analysis. If you need to extract that data, it will take some new logic to extract those undefined data blocks. Below is the file block directory as read by my package:
The two mysterious blocks have a block type of (0, 0, 0, 0, 0, 0). At first glance at the raw bytes in these undefined blocks, I can see metadata stored in these blocks, but also likely a data array. If you need to extract the info from these blocks as well (and not just the absorption and standard metadata blocks), you can open an issue in my package: |
Firstly, thank you very much for providing this python package.
One of my recordings done on a Bruker Tensor 27 spectrometer can't be read by opusreader.
The OPUS viewer displays is able to display the measurement (blue). I also show the 'readable' example in red (See below)
When reading the two files I get widely different absorption values:
The files can be found here: https://drive.google.com/drive/folders/1tTz6-GYi1mNkF85JtXe4k_GY7ffpiY6_?usp=sharing
Note: The files are from two different measurements which were ran consecutively. All measurement during the 'unreadable' measurement are unreadable. All measurements during the 'readable' measurement are readable.
Any idea what the problem could be? I initially thought that the file might be corrupted. However, the OPUS viewer is able to extract the correct information.
The text was updated successfully, but these errors were encountered: