Galactic Magnetic Field Calculator

Interactive web tool to evaluate the Galactic magnetic field (GMF) and to backtrack ultra-high-energy cosmic rays, using the UF23 model ensemble [1].

x (kpc)
y (kpc)
z (kpc)
Galactic center at origin, Sun at x = −8.178 kpc, z-axis toward Galactic North.

Magnetic Field Components

Bx
0.00
μG
By
0.00
μG
Bz
0.00
μG
longitude l (°)
latitude b (°)
18 21
Keyboard: ← / → to adjust rigidity
Sky Map 3D Trajectories
dimensionless target error as a fraction of the local Larmor radius rL
Adaptive Boris pusher: the step size is adjusted automatically to meet the target error (rtol), bounded by min/max step. Tracking stops when the galactocentric radius exceeds max radius or max steps is reached. Fixed-size stepping if min step = max step.
Initializing...

Backtracking Results

modell (°)b (°)δ (°)
[1] M. Unger & G. R. Farrar, The Coherent Magnetic Field of the Milky Way, Astrophys.J. 970 (2024) 1, 95, arXiv:2311.12120.