To better understand the NMR files, we can use Python’s Matplotlib to visualize the NMR files and compare the results with the NMR software.
Visualize NMR csv files
From MestReNova, we can export a 2D NMR spectrum with NMR csv format. The first row and first column of this csv file is the PPM. The rest data are heights of the spectrum at different locations.
The code to visualize the csv file is straight forward:
The above code will generate a picture like this:
Which is similar to the original data shown in MestReNova:
Visualize ucsf data
The ucsf data is a binary format, we need to load the data first:
The above code will generate the picture below:
Which is similar to the original data shown in sparky: