Package lib :: Module nmr
[hide private]
[frames] | no frames]

Module nmr

source code

Module containing functions related to basic NMR concepts.

Functions [hide private]
float
frequency_to_Hz(frq=None, B0=None, isotope=None)
Convert the given frequency from ppm to Hertz units.
source code
float
frequency_to_ppm(frq=None, B0=None, isotope=None)
Convert the given frequency from Hertz to ppm units.
source code
float
frequency_to_rad_per_s(frq=None, B0=None, isotope=None)
Convert the given frequency from ppm to rad/s units.
source code
Variables [hide private]
  __package__ = 'lib'

Imports: pi, g1H, return_gyromagnetic_ratio


Function Details [hide private]

frequency_to_Hz(frq=None, B0=None, isotope=None)

source code 

Convert the given frequency from ppm to Hertz units.

Parameters:
  • frq (float) - The frequency in ppm.
  • B0 (float) - The magnetic field strength as the proton frequency in Hertz.
  • isotope (str) - The isotope type of the nucleus of interest.
Returns: float
The frequency in Hertz.

frequency_to_ppm(frq=None, B0=None, isotope=None)

source code 

Convert the given frequency from Hertz to ppm units.

Parameters:
  • frq (float) - The frequency in Hertz.
  • B0 (float) - The magnetic field strength as the proton frequency in Hertz.
  • isotope (str) - The isotope type of the nucleus of interest.
Returns: float
The frequency in ppm.

frequency_to_rad_per_s(frq=None, B0=None, isotope=None)

source code 

Convert the given frequency from ppm to rad/s units.

Parameters:
  • frq (float) - The frequency in ppm.
  • B0 (float) - The magnetic field strength as the proton frequency in Hertz.
  • isotope (str) - The isotope type of the nucleus of interest.
Returns: float
The frequency in rad/s.