Save read part as JCAMP-DX and reload does not work
If you load this spectrum:
And save it has JCAMP-DX real part.
Reloading it thinks it is a FID and not a processed spectrunm.
In the current state of nmrium, it load a processed spectrum, there are two aspect of possible bugs:
- the x axis looks inverted for the generated jcamp.
- the icon looks as a FID, possibly isFID true in the info of the generated jcamp (to be checked)
https://github.com/user-attachments/assets/d6b3dd82-4336-494f-85ab-d8d15cd4dead
Can you detail the reasons ?
If the fix should be done in the NMRium project you should explain how to do. It it is in dependencies you can make a PR to fix the issues.
When nmrium processes FID data, only the info object is modified. Including the meta object in the JCAMP generation causes confusion, as it contains unmodified metadata from the original source. A quick solution is to exclude the meta from the information that we pass to the function spectrum1DToJcampdx