Problem to export your NMR data? Here you go a a very simple Python script to generate a normal X/Y csv file from a Bruker TopSpin® .txt file. Any comment, pull request or suggestion is appreciated.
- Open Bruker's TopSpin® and export the current view through: Right Click > Save Display Region To... > A text file for use with other programs (leave all default). A plain text file will be saved. Let's say you named it as
filename.txt
- Launch the python script in the same folder with the command:
topspin-to-csv.py -f filename.txt
- A new file will be generated:
filename.csv
. Now you can open it with Excel, Origin, QtiPlot or whatever.
Enjoy! ✨
Many thanks to Glenn Facey 🙏🏼 and to his hidden gem in the web, found after many days of research, to have provided us all with the algorithm to extract such data: University of Ottawa NMR Facility Web Site.