jjhelmus / nmrglue

A module for working with NMR data in Python
BSD 3-Clause "New" or "Revised" License
211 stars 86 forks source link

Calculate PPM values using reference frequency when available. #21

Open jjhelmus opened 10 years ago

jjhelmus commented 10 years ago

Currently nmrglue's unit_conversion object calculates ppm values using the observational/operating frequency, spectral width, and carrier frequency. The correct method for calculating PPM values uses the frequency of a reference compound. An option to provide this value (or extract it from file dictionaries when available) and use it in PPM calculation should be added to the unit_conversion object.