== Test randomimagebycategor ==
<randomimagebycategory width="200" categories="Screenshots"/>
== Test ==
<source lang="python">
from math import pi
from lib import nmr
from lib.physical_constants import return_gyromagnetic_ratio
id = 'test'
H_frq = 900.0e6
B0_tesla = H_frq / return_gyromagnetic_ratio(nucleus='1H') * 2.0 * pi
print "B0 in Tesla:", B0_tesla
isotope = '15N'
yOBS_N15_rad_s = return_gyromagnetic_ratio(nucleus=isotope) * B0_tesla
yOBS_N15_ppm = nmr.frequency_to_ppm_from_rad(frq=yOBS_N15_rad_s, B0=H_frq, isotope=isotope)
print yOBS_N15_ppm
# Convert hz
offset_hz = 2100.
offset_ppm = nmr.frequency_to_ppm(frq=offset_hz, B0=H_frq, isotope=isotope)
print offset_ppm
#yOBS_rad_s = return_gyromagnetic_ratio(nucleus=isotope) * B0_tesla
#print yOBS_rad_s
#yOBS_ppm = nmr.frequency_to_ppm_from_rad(frq=yOBS_rad_s, B0=H_frq, isotope=isotope)
#print yOBS_ppm
# Center carriage In ppm
yCAR_ppm = 118.078
</source>