mrpro.utils.unit_conversion

Conversion between different units.

Module Attributes

GYROMAGNETIC_RATIO_PROTON

The gyromagnetic ratio \(\frac{\gamma}{2\pi}\) of 1H in H20 in Hz/T

Functions

deg_to_rad(deg)

Convert degree to radians.

lamor_frequency_to_magnetic_field(...[, ...])

Convert the Lamor frequency [Hz] to the magntic field strength [T].

m_to_mm(m)

Convert m to mm.

magnetic_field_to_lamor_frequency(...[, ...])

Convert the magntic field strength [T] to Lamor frequency [Hz].

mm_to_m(mm)

Convert mm to m.

ms_to_s(ms)

Convert ms to s.

rad_to_deg(deg)

Convert radians to degree.

s_to_ms(s)

Convert s to ms.