Unit conversionΒΆ
Module containing convenient unit conversion factors, including
radians_per_fs_to_THz
radians_per_fs_to_meV
radians_per_fs_to_invcm
THz_to_meV
THz_to_invcm
meV_to_invcm
Here, for example, radians_per_fs_to_invcm
can be used to convert an angular frequency in units
of radians/fs to a frequency in 1/cm, as demonstrated by the code snippet below.
# converting the angular frequencies (omega) in a Sample object to frequencies in inverse cm
from dynasor.units import radians_per_fs_to_invcm
frequencies_invcm = sample.omega * radians_per_fs_to_invcm
# converting frequencies from inverse cm to meV
from dynasor.units import meV_to_invcm
frequencies_meV = frequencies_invcm / meV_to_invcm