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_ppm_from_rad(frq=None, B0=None, isotope=None)
Convert the given frequency from rad/s 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
float, float, float
rotating_frame_params(chemical_shift=None, spin_lock_offset=None, omega1=None)
Calculate the rotating frame paramaters.
source code
Variables [hide private]
  __package__ = 'lib'

Imports: atan2, pi, sqrt, periodic_table


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_ppm_from_rad(frq=None, B0=None, isotope=None)

source code 

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

Parameters:
  • frq (float) - The frequency in rad/s.
  • 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.

rotating_frame_params(chemical_shift=None, spin_lock_offset=None, omega1=None)

source code 

Calculate the rotating frame paramaters.

Parameters:
  • chemical_shift (float) - The chemical shift in rad/s.
  • spin_lock_offset (float) - spin-lock offset in rad/s.
  • omega1 (float) - Spin-lock field strength in rad/s.
Returns: float, float, float
The average resonance offset in the rotating frame, angle describing the tilted rotating frame relative to the laboratory, effective field in rotating frame.