-
Notifications
You must be signed in to change notification settings - Fork 7
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
JCAMPWriter (complex NMR Data) corrupts the ##XYDATA Block #3
Comments
This project is just a fork of the orphaned project on sf.net (https://sourceforge.net/projects/jcamp-dx/). Never used NMR data before. |
Mayn thanks for the hint. But my first try with the above mentioned fork failed, I could not even read my data and I do not have time to look in detail. Anyway I will use your code for my purpos and save my calculated data in separat file. |
Thanks for letting me know. Can you send through an example NMR file that exhibits this behavior? |
Any example show this behavior. E.g. in your test data with jcamp60.jdx (you have to remove all lines with starting with %% because the parser does not like them) |
The library only supports version 5.01 (at least according to |
I also get corrupt (FID) data, try to read it back results in
|
I only use the library for NIR data. |
I have debugged a little bit and it seems that either the parser or the generator for the compressed data has some problem, I had to read the spec a little bit more to understand what happens. |
Its me again, sorry for annoying you!
I read a jcamp file with complex nmr data (which works like a charm!) and write directly the produced data with the JCAMPWriter:
...
Reading again the new jcamp file lead to multiple messages like:
WARNUNG: x check failed in line1: expected x = 1325727.744000001 but got 7716.745205020741
SCHWERWIEGEND: bad x check value
and
WARNUNG: incorrect ##NPOINTS= or bad ##XYDATA=
found 154130, but ##NPOINTS= 131072, setting NPOINTS to 154130
In the end the spectrum is corrupt.
I get the same multiple messages from your test on compiling your source code.
What can I do to write correct nmr jcamp file?
Anyway I would like to thank you for the fantastic work with jcamp-dx.
I appreciate your project and would like to use it intensively.
Best regards,
Sven
The text was updated successfully, but these errors were encountered: