Deflection in Galaxy#

This notebook demonstrates the simulation of Ultra-High-Energy Cosmic Ray (UHECR) propagation through the Galaxy. The goal is to estimate the deflection of protons with energies \(E = 60~\text{EeV}\) caused by the Galactic magnetic field (GMF).

At such high energies (\(> 10^{18}\) eV), the Larmor radius of particles becomes comparable to the size of the Galaxy, and diffusion effects are negligible. Therefore, we can simulate their propagation using trajectory backtracing:

  • Launch antiparticles (antiprotons) from the Solar System in various directions covering the celestial sphere.

  • Trace them through the GMF model (Jansson & Farrar, JF12) until they escape the Galactic halo.

  • Calculate the angle between the initial launch direction and the final position vector.

The deflection angle \(\alpha\) is calculated as:

\[ \alpha = \arccos\left( \frac{\mathbf{v}_0 \cdot (\mathbf{r}_f - \mathbf{r}_0)}{|\mathbf{r}_f - \mathbf{r}_0|}\right) \]
where:

  • \(\mathbf{v}_0\) is the initial normalized velocity vector (direction of observation),

  • \(\mathbf{r}_0\) is the starting position (Solar System),

  • \(\mathbf{r}_f\) is the final position where the particle escapes the Galaxy.

Expected Output:

A sky map (Galactic coordinates) showing the magnitude of deflection for 60 EeV protons, highlighting the anisotropic influence of the large-scale magnetic field structure.

from datetime import datetime

import matplotlib.pyplot as plt
import numpy as np
from gtsimulation.pusher import BunemanBorisSimulator
from gtsimulation.common import Regions, Units
from gtsimulation.magnetic_field.galaxy import JF12mod
from gtsimulation.particle import generator, Flux

Simulation settings#

We define the global simulation environment:

  • Magnetic Field: Jansson & Farrar (2012) model (JF12), random component disabled (use_turb=False) to study the regular field effect.

  • Region: Galaxy.

  • Time Step: Large step (\(1000\) days) is sufficient for UHECRs due to their immense rigidity.

  • Break Conditions: Simulation stops when the particle reaches the Galactic halo boundary (\(R > 28.5\) kpc).

date = datetime(2025, 1, 1)
region = Regions.Galaxy
b_field = JF12mod(use_turb=False)
medium = None

use_decay = False
nuclear_interaction = None

dt = 1000 * Units.day  # time step [s]
n_steps = int(1e5)

# dt = 100 * Units.day  # time step [s]
# n_steps = int(1e6)

break_conditions = [{"Rmax": 28.5 * Units.kpc}, np.array([-8.5, 0, 0]) * Units.kpc]

save = [0, {"Coordinates": True, "Velocities": True}]
output = None

verbose = 0

The function get_deflection_angle performs the core logic for a single direction \((l, b)\):

  • Converts Galactic coordinates \((l, b)\) to a velocity vector.

  • Initializes an anti-proton at the Solar System location \((-8.5, 0, 0)\) kpc.

  • Runs the BunemanBorisSimulator.

  • Computes the deflection angle \(\alpha\) using the formula defined in the introduction.

def get_deflection_angle(l, b):
    v = np.array([
        np.cos(np.deg2rad(l)) * np.cos(np.deg2rad(b)),
        np.sin(np.deg2rad(l)) * np.cos(np.deg2rad(b)),
        np.sin(np.deg2rad(b))
    ])
    particle = Flux(
        Spectrum=generator.spectrum.UserInput(energy=60 * Units.EeV),
        Distribution=generator.distribution.UserInput(
            R0=np.array([-8.5, 0, 0]) * Units.kpc,
            V0=v
        ),
        Names="anti_proton"
    )
    simulator = BunemanBorisSimulator(
        Bfield=b_field,
        Region=region,
        Medium=medium,
        Particles=particle,
        InteractNUC=nuclear_interaction,
        UseDecay=use_decay,
        Date=date,
        Step=dt,
        Num=n_steps,
        BreakCondition=break_conditions,
        Save=save,
        Output=output,
        Verbose=verbose
    )
    event = simulator()[0][0]
    r_0 = event['Particle']['R0']
    r_f = event['Track']['Coordinates'][-1]
    v_0 = event['Particle']['V0']
    angle = np.acos(np.dot(v_0, (r_f - r_0)) / np.linalg.norm(r_f - r_0))
    return np.rad2deg(angle)

Global scan setup#

We define a grid in Galactic coordinates \((l, b)\) to map the deflection angles across the entire sky.

  • Longitude \(l\): -180 to 180 degrees.

  • Latitude \(b\): -90 to 90 degrees.

from joblib import Parallel, delayed
from tqdm_joblib import tqdm_joblib

from mpl_toolkits.axes_grid1 import make_axes_locatable
/home/rustam/Software/GTsimulation/.venv/lib/python3.14/site-packages/tqdm_joblib/__init__.py:4: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
  from tqdm.autonotebook import tqdm
l_grid = np.arange(-180, 180, 10)
b_grid = np.arange(-90, 91, 10)
a_grid = np.empty((b_grid.size, l_grid.size))

Since each direction is independent, we use joblib to parallelize the computation across all available CPU cores.

def worker(i_l, i_b):
    angle = get_deflection_angle(l_grid[i_l], b_grid[i_b])
    return i_l, i_b, angle

tasks = [(i, j) for i in range(l_grid.size) for j in range(b_grid.size)]
with tqdm_joblib(total=len(tasks)):
    res = Parallel(n_jobs=-1)(delayed(worker)(i, j) for i, j in tasks)
for i_l, i_b, v in res:
    a_grid[i_b, i_l] = v
  0%|                                                                                                                                                                                             | 0/684 [00:00<?, ?it/s]
  0%|▎                                                                                                                                                                                  | 1/684 [00:09<1:53:49, 10.00s/it]
  0%|▊                                                                                                                                                                                    | 3/684 [00:10<30:15,  2.67s/it]
  1%|█▊                                                                                                                                                                                   | 7/684 [00:10<09:54,  1.14it/s]
  1%|██▍                                                                                                                                                                                  | 9/684 [00:10<07:01,  1.60it/s]
  2%|██▉                                                                                                                                                                                 | 11/684 [00:10<04:59,  2.25it/s]
  2%|███▍                                                                                                                                                                                | 13/684 [00:11<05:32,  2.02it/s]
  2%|███▉                                                                                                                                                                                | 15/684 [00:12<04:15,  2.61it/s]
  2%|████▏                                                                                                                                                                               | 16/684 [00:12<03:43,  2.99it/s]
  3%|█████▎                                                                                                                                                                              | 20/684 [00:12<02:03,  5.37it/s]
  3%|█████▊                                                                                                                                                                              | 22/684 [00:12<01:48,  6.12it/s]
  4%|██████▌                                                                                                                                                                             | 25/684 [00:13<02:35,  4.25it/s]
  4%|██████▊                                                                                                                                                                             | 26/684 [00:13<02:29,  4.41it/s]
  4%|███████                                                                                                                                                                             | 27/684 [00:13<02:16,  4.82it/s]
  4%|███████▉                                                                                                                                                                            | 30/684 [00:14<01:35,  6.85it/s]
  5%|████████▋                                                                                                                                                                           | 33/684 [00:14<01:21,  7.97it/s]
  5%|█████████▍                                                                                                                                                                          | 36/684 [00:14<01:09,  9.30it/s]
  6%|██████████                                                                                                                                                                          | 38/684 [00:15<02:23,  4.50it/s]
  6%|██████████▌                                                                                                                                                                         | 40/684 [00:15<01:58,  5.43it/s]
  6%|███████████                                                                                                                                                                         | 42/684 [00:16<01:36,  6.64it/s]
  6%|███████████▌                                                                                                                                                                        | 44/684 [00:16<01:20,  7.99it/s]
  7%|████████████▎                                                                                                                                                                       | 47/684 [00:16<01:01, 10.28it/s]
  7%|████████████▉                                                                                                                                                                       | 49/684 [00:17<02:24,  4.39it/s]
  7%|█████████████▍                                                                                                                                                                      | 51/684 [00:17<02:05,  5.05it/s]
  8%|██████████████▏                                                                                                                                                                     | 54/684 [00:18<01:41,  6.21it/s]
  8%|███████████████▎                                                                                                                                                                    | 58/684 [00:18<01:08,  9.19it/s]
  9%|███████████████▊                                                                                                                                                                    | 60/684 [00:18<01:10,  8.84it/s]
  9%|████████████████▎                                                                                                                                                                   | 62/684 [00:19<02:14,  4.62it/s]
  9%|████████████████▊                                                                                                                                                                   | 64/684 [00:19<01:50,  5.61it/s]
 10%|█████████████████▎                                                                                                                                                                  | 66/684 [00:19<01:41,  6.07it/s]
 11%|██████████████████▉                                                                                                                                                                 | 72/684 [00:20<01:13,  8.34it/s]
 11%|███████████████████▍                                                                                                                                                                | 74/684 [00:21<01:57,  5.20it/s]
 11%|████████████████████                                                                                                                                                                | 76/684 [00:21<01:41,  5.99it/s]
 11%|████████████████████▌                                                                                                                                                               | 78/684 [00:21<01:30,  6.72it/s]
 12%|██████████████████████                                                                                                                                                              | 84/684 [00:22<01:10,  8.47it/s]
 13%|██████████████████████▋                                                                                                                                                             | 86/684 [00:23<01:50,  5.39it/s]
 13%|███████████████████████▏                                                                                                                                                            | 88/684 [00:23<01:36,  6.15it/s]
 13%|███████████████████████▋                                                                                                                                                            | 90/684 [00:23<01:29,  6.66it/s]
 14%|█████████████████████████▎                                                                                                                                                          | 96/684 [00:24<01:10,  8.39it/s]
 14%|█████████████████████████▌                                                                                                                                                          | 97/684 [00:24<01:50,  5.29it/s]
 14%|█████████████████████████▊                                                                                                                                                          | 98/684 [00:24<01:46,  5.51it/s]
 14%|██████████████████████████                                                                                                                                                          | 99/684 [00:25<01:38,  5.93it/s]
 15%|██████████████████████████▋                                                                                                                                                        | 102/684 [00:25<01:23,  6.97it/s]
 16%|████████████████████████████▎                                                                                                                                                      | 108/684 [00:25<01:05,  8.83it/s]
 16%|████████████████████████████▌                                                                                                                                                      | 109/684 [00:26<01:53,  5.08it/s]
 16%|█████████████████████████████                                                                                                                                                      | 111/684 [00:26<01:37,  5.88it/s]
 17%|█████████████████████████████▌                                                                                                                                                     | 113/684 [00:27<01:22,  6.94it/s]
 17%|██████████████████████████████                                                                                                                                                     | 115/684 [00:27<01:12,  7.88it/s]
 17%|███████████████████████████████▏                                                                                                                                                   | 119/684 [00:27<00:59,  9.49it/s]
 18%|███████████████████████████████▋                                                                                                                                                   | 121/684 [00:28<01:54,  4.91it/s]
 18%|███████████████████████████████▉                                                                                                                                                   | 122/684 [00:28<01:48,  5.17it/s]
 18%|████████████████████████████████▏                                                                                                                                                  | 123/684 [00:28<01:41,  5.51it/s]
 18%|████████████████████████████████▉                                                                                                                                                  | 126/684 [00:29<01:15,  7.37it/s]
 19%|██████████████████████████████████▎                                                                                                                                                | 131/684 [00:29<00:53, 10.32it/s]
 19%|██████████████████████████████████▊                                                                                                                                                | 133/684 [00:30<01:47,  5.13it/s]
 20%|███████████████████████████████████                                                                                                                                                | 134/684 [00:30<01:40,  5.49it/s]
 20%|███████████████████████████████████▎                                                                                                                                               | 135/684 [00:30<01:41,  5.40it/s]
 20%|████████████████████████████████████                                                                                                                                               | 138/684 [00:30<01:13,  7.44it/s]
 21%|█████████████████████████████████████▍                                                                                                                                             | 143/684 [00:31<00:49, 10.95it/s]
 21%|█████████████████████████████████████▉                                                                                                                                             | 145/684 [00:32<01:44,  5.16it/s]
 21%|██████████████████████████████████████▍                                                                                                                                            | 147/684 [00:32<01:37,  5.52it/s]
 22%|███████████████████████████████████████▎                                                                                                                                           | 150/684 [00:32<01:14,  7.14it/s]
 22%|████████████████████████████████████████                                                                                                                                           | 153/684 [00:32<00:56,  9.42it/s]
 23%|████████████████████████████████████████▌                                                                                                                                          | 155/684 [00:33<00:56,  9.28it/s]
 23%|█████████████████████████████████████████                                                                                                                                          | 157/684 [00:34<01:52,  4.68it/s]
 23%|█████████████████████████████████████████▌                                                                                                                                         | 159/684 [00:34<01:44,  5.01it/s]
 24%|██████████████████████████████████████████▍                                                                                                                                        | 162/684 [00:34<01:14,  7.02it/s]
 24%|███████████████████████████████████████████▏                                                                                                                                       | 165/684 [00:34<00:55,  9.34it/s]
 24%|███████████████████████████████████████████▋                                                                                                                                       | 167/684 [00:34<00:57,  8.99it/s]
 25%|████████████████████████████████████████████▏                                                                                                                                      | 169/684 [00:35<01:49,  4.70it/s]
 25%|████████████████████████████████████████████▊                                                                                                                                      | 171/684 [00:36<01:45,  4.86it/s]
 25%|█████████████████████████████████████████████▎                                                                                                                                     | 173/684 [00:36<01:24,  6.02it/s]
 26%|██████████████████████████████████████████████                                                                                                                                     | 176/684 [00:36<01:01,  8.30it/s]
 26%|██████████████████████████████████████████████▌                                                                                                                                    | 178/684 [00:36<00:53,  9.39it/s]
 26%|███████████████████████████████████████████████                                                                                                                                    | 180/684 [00:37<01:06,  7.61it/s]
 27%|███████████████████████████████████████████████▋                                                                                                                                   | 182/684 [00:38<01:53,  4.41it/s]
 27%|███████████████████████████████████████████████▉                                                                                                                                   | 183/684 [00:38<01:44,  4.81it/s]
 27%|████████████████████████████████████████████████▏                                                                                                                                  | 184/684 [00:38<01:34,  5.30it/s]
 27%|█████████████████████████████████████████████████▏                                                                                                                                 | 188/684 [00:38<00:55,  8.93it/s]
 28%|█████████████████████████████████████████████████▋                                                                                                                                 | 190/684 [00:38<00:53,  9.31it/s]
 28%|██████████████████████████████████████████████████▏                                                                                                                                | 192/684 [00:38<01:00,  8.11it/s]
 28%|██████████████████████████████████████████████████▊                                                                                                                                | 194/684 [00:39<01:51,  4.41it/s]
 29%|███████████████████████████████████████████████████▎                                                                                                                               | 196/684 [00:40<01:32,  5.28it/s]
 29%|████████████████████████████████████████████████████                                                                                                                               | 199/684 [00:40<01:05,  7.40it/s]
 29%|████████████████████████████████████████████████████▌                                                                                                                              | 201/684 [00:40<00:58,  8.23it/s]
 30%|█████████████████████████████████████████████████████                                                                                                                              | 203/684 [00:40<00:50,  9.58it/s]
 30%|█████████████████████████████████████████████████████▋                                                                                                                             | 205/684 [00:41<01:38,  4.88it/s]
 30%|██████████████████████████████████████████████████████▏                                                                                                                            | 207/684 [00:41<01:34,  5.06it/s]
 30%|██████████████████████████████████████████████████████▍                                                                                                                            | 208/684 [00:42<01:36,  4.93it/s]
 31%|██████████████████████████████████████████████████████▉                                                                                                                            | 210/684 [00:42<01:14,  6.34it/s]
 31%|███████████████████████████████████████████████████████▍                                                                                                                           | 212/684 [00:42<00:58,  8.04it/s]
 31%|████████████████████████████████████████████████████████                                                                                                                           | 214/684 [00:42<01:06,  7.02it/s]
 32%|████████████████████████████████████████████████████████▌                                                                                                                          | 216/684 [00:42<01:07,  6.92it/s]
 32%|████████████████████████████████████████████████████████▊                                                                                                                          | 217/684 [00:43<01:26,  5.43it/s]
 32%|█████████████████████████████████████████████████████████                                                                                                                          | 218/684 [00:43<01:21,  5.68it/s]
 32%|█████████████████████████████████████████████████████████▌                                                                                                                         | 220/684 [00:44<01:39,  4.68it/s]
 32%|█████████████████████████████████████████████████████████▊                                                                                                                         | 221/684 [00:44<01:31,  5.05it/s]
 33%|██████████████████████████████████████████████████████████▎                                                                                                                        | 223/684 [00:44<01:17,  5.98it/s]
 33%|██████████████████████████████████████████████████████████▉                                                                                                                        | 225/684 [00:44<00:59,  7.66it/s]
 33%|███████████████████████████████████████████████████████████▍                                                                                                                       | 227/684 [00:44<01:01,  7.43it/s]
 33%|███████████████████████████████████████████████████████████▉                                                                                                                       | 229/684 [00:45<01:14,  6.11it/s]
 34%|████████████████████████████████████████████████████████████▏                                                                                                                      | 230/684 [00:45<01:10,  6.45it/s]
 34%|████████████████████████████████████████████████████████████▍                                                                                                                      | 231/684 [00:45<01:41,  4.46it/s]
 34%|████████████████████████████████████████████████████████████▉                                                                                                                      | 233/684 [00:46<01:22,  5.45it/s]
 34%|█████████████████████████████████████████████████████████████▍                                                                                                                     | 235/684 [00:46<01:10,  6.36it/s]
 35%|█████████████████████████████████████████████████████████████▊                                                                                                                     | 236/684 [00:46<01:08,  6.56it/s]
 35%|██████████████████████████████████████████████████████████████                                                                                                                     | 237/684 [00:46<01:11,  6.22it/s]
 35%|██████████████████████████████████████████████████████████████▌                                                                                                                    | 239/684 [00:46<00:55,  7.96it/s]
 35%|██████████████████████████████████████████████████████████████▊                                                                                                                    | 240/684 [00:46<00:57,  7.74it/s]
 35%|███████████████████████████████████████████████████████████████                                                                                                                    | 241/684 [00:47<01:15,  5.86it/s]
 35%|███████████████████████████████████████████████████████████████▎                                                                                                                   | 242/684 [00:47<01:09,  6.39it/s]
 36%|███████████████████████████████████████████████████████████████▌                                                                                                                   | 243/684 [00:47<01:43,  4.26it/s]
 36%|███████████████████████████████████████████████████████████████▊                                                                                                                   | 244/684 [00:47<01:27,  5.05it/s]
 36%|████████████████████████████████████████████████████████████████                                                                                                                   | 245/684 [00:48<01:21,  5.38it/s]
 36%|████████████████████████████████████████████████████████████████▋                                                                                                                  | 247/684 [00:48<00:58,  7.43it/s]
 36%|████████████████████████████████████████████████████████████████▉                                                                                                                  | 248/684 [00:48<01:07,  6.47it/s]
 36%|█████████████████████████████████████████████████████████████████▏                                                                                                                 | 249/684 [00:48<01:06,  6.55it/s]
 37%|█████████████████████████████████████████████████████████████████▋                                                                                                                 | 251/684 [00:48<01:00,  7.12it/s]
 37%|██████████████████████████████████████████████████████████████████▏                                                                                                                | 253/684 [00:49<01:03,  6.81it/s]
 37%|██████████████████████████████████████████████████████████████████▍                                                                                                                | 254/684 [00:49<01:07,  6.35it/s]
 37%|██████████████████████████████████████████████████████████████████▋                                                                                                                | 255/684 [00:49<01:33,  4.59it/s]
 38%|███████████████████████████████████████████████████████████████████▎                                                                                                               | 257/684 [00:50<01:20,  5.27it/s]
 38%|████████████████████████████████████████████████████████████████████                                                                                                               | 260/684 [00:50<01:16,  5.55it/s]
 38%|████████████████████████████████████████████████████████████████████▊                                                                                                              | 263/684 [00:50<00:53,  7.94it/s]
 39%|█████████████████████████████████████████████████████████████████████▎                                                                                                             | 265/684 [00:50<00:55,  7.51it/s]
 39%|█████████████████████████████████████████████████████████████████████▌                                                                                                             | 266/684 [00:51<01:11,  5.86it/s]
 39%|█████████████████████████████████████████████████████████████████████▊                                                                                                             | 267/684 [00:51<01:23,  5.02it/s]
 39%|██████████████████████████████████████████████████████████████████████▍                                                                                                            | 269/684 [00:51<01:13,  5.66it/s]
 40%|███████████████████████████████████████████████████████████████████████▏                                                                                                           | 272/684 [00:52<01:07,  6.12it/s]
 40%|███████████████████████████████████████████████████████████████████████▍                                                                                                           | 273/684 [00:52<01:04,  6.34it/s]
 40%|███████████████████████████████████████████████████████████████████████▉                                                                                                           | 275/684 [00:52<00:54,  7.51it/s]
 40%|████████████████████████████████████████████████████████████████████████▍                                                                                                          | 277/684 [00:52<00:47,  8.49it/s]
 41%|████████████████████████████████████████████████████████████████████████▊                                                                                                          | 278/684 [00:53<01:12,  5.60it/s]
 41%|█████████████████████████████████████████████████████████████████████████                                                                                                          | 279/684 [00:53<01:20,  5.04it/s]
 41%|█████████████████████████████████████████████████████████████████████████▌                                                                                                         | 281/684 [00:53<01:10,  5.70it/s]
 42%|██████████████████████████████████████████████████████████████████████████▎                                                                                                        | 284/684 [00:54<01:14,  5.35it/s]
 42%|███████████████████████████████████████████████████████████████████████████▎                                                                                                       | 288/684 [00:54<00:49,  8.04it/s]
 42%|███████████████████████████████████████████████████████████████████████████▉                                                                                                       | 290/684 [00:55<01:04,  6.09it/s]
 43%|████████████████████████████████████████████████████████████████████████████▏                                                                                                      | 291/684 [00:55<01:05,  5.98it/s]
 43%|████████████████████████████████████████████████████████████████████████████▍                                                                                                      | 292/684 [00:55<01:02,  6.27it/s]
 43%|████████████████████████████████████████████████████████████████████████████▋                                                                                                      | 293/684 [00:55<01:01,  6.31it/s]
 43%|█████████████████████████████████████████████████████████████████████████████▍                                                                                                     | 296/684 [00:56<01:10,  5.51it/s]
 44%|██████████████████████████████████████████████████████████████████████████████▏                                                                                                    | 299/684 [00:56<00:48,  7.87it/s]
 44%|██████████████████████████████████████████████████████████████████████████████▊                                                                                                    | 301/684 [00:56<00:45,  8.41it/s]
 44%|███████████████████████████████████████████████████████████████████████████████▎                                                                                                   | 303/684 [00:57<01:07,  5.62it/s]
 44%|███████████████████████████████████████████████████████████████████████████████▌                                                                                                   | 304/684 [00:57<01:05,  5.77it/s]
 45%|████████████████████████████████████████████████████████████████████████████████                                                                                                   | 306/684 [00:57<00:53,  7.08it/s]
 45%|████████████████████████████████████████████████████████████████████████████████▌                                                                                                  | 308/684 [00:58<01:08,  5.49it/s]
 45%|█████████████████████████████████████████████████████████████████████████████████▍                                                                                                 | 311/684 [00:58<00:48,  7.65it/s]
 46%|█████████████████████████████████████████████████████████████████████████████████▉                                                                                                 | 313/684 [00:58<00:50,  7.33it/s]
 46%|██████████████████████████████████████████████████████████████████████████████████▏                                                                                                | 314/684 [00:59<01:15,  4.91it/s]
 46%|██████████████████████████████████████████████████████████████████████████████████▋                                                                                                | 316/684 [00:59<00:59,  6.20it/s]
 46%|██████████████████████████████████████████████████████████████████████████████████▉                                                                                                | 317/684 [00:59<01:00,  6.09it/s]
 47%|███████████████████████████████████████████████████████████████████████████████████▍                                                                                               | 319/684 [00:59<00:55,  6.57it/s]
 47%|███████████████████████████████████████████████████████████████████████████████████▋                                                                                               | 320/684 [01:00<01:11,  5.11it/s]
 47%|████████████████████████████████████████████████████████████████████████████████████▎                                                                                              | 322/684 [01:00<00:55,  6.54it/s]
 48%|█████████████████████████████████████████████████████████████████████████████████████                                                                                              | 325/684 [01:00<00:51,  7.04it/s]
 48%|█████████████████████████████████████████████████████████████████████████████████████▎                                                                                             | 326/684 [01:01<01:18,  4.55it/s]
 48%|█████████████████████████████████████████████████████████████████████████████████████▌                                                                                             | 327/684 [01:01<01:17,  4.62it/s]
 48%|██████████████████████████████████████████████████████████████████████████████████████                                                                                             | 329/684 [01:01<00:55,  6.36it/s]
 48%|██████████████████████████████████████████████████████████████████████████████████████▌                                                                                            | 331/684 [01:02<01:09,  5.06it/s]
 49%|███████████████████████████████████████████████████████████████████████████████████████▏                                                                                           | 333/684 [01:02<00:54,  6.45it/s]
 49%|███████████████████████████████████████████████████████████████████████████████████████▋                                                                                           | 335/684 [01:02<00:45,  7.61it/s]
 49%|████████████████████████████████████████████████████████████████████████████████████████▏                                                                                          | 337/684 [01:02<00:38,  8.91it/s]
 50%|████████████████████████████████████████████████████████████████████████████████████████▋                                                                                          | 339/684 [01:03<01:12,  4.75it/s]
 50%|█████████████████████████████████████████████████████████████████████████████████████████▏                                                                                         | 341/684 [01:03<00:58,  5.87it/s]
 50%|█████████████████████████████████████████████████████████████████████████████████████████▊                                                                                         | 343/684 [01:03<01:04,  5.25it/s]
 50%|██████████████████████████████████████████████████████████████████████████████████████████▎                                                                                        | 345/684 [01:04<00:53,  6.39it/s]
 51%|██████████████████████████████████████████████████████████████████████████████████████████▊                                                                                        | 347/684 [01:04<00:43,  7.68it/s]
 51%|███████████████████████████████████████████████████████████████████████████████████████████▎                                                                                       | 349/684 [01:04<01:00,  5.54it/s]
 51%|███████████████████████████████████████████████████████████████████████████████████████████▌                                                                                       | 350/684 [01:05<01:09,  4.83it/s]
 52%|████████████████████████████████████████████████████████████████████████████████████████████▍                                                                                      | 353/684 [01:05<00:48,  6.80it/s]
 52%|████████████████████████████████████████████████████████████████████████████████████████████▋                                                                                      | 354/684 [01:06<01:18,  4.19it/s]
 52%|█████████████████████████████████████████████████████████████████████████████████████████████▉                                                                                     | 359/684 [01:06<00:48,  6.73it/s]
 53%|██████████████████████████████████████████████████████████████████████████████████████████████▏                                                                                    | 360/684 [01:06<00:56,  5.77it/s]
 53%|██████████████████████████████████████████████████████████████████████████████████████████████▍                                                                                    | 361/684 [01:07<00:59,  5.42it/s]
 53%|██████████████████████████████████████████████████████████████████████████████████████████████▉                                                                                    | 363/684 [01:07<00:46,  6.93it/s]
 53%|███████████████████████████████████████████████████████████████████████████████████████████████▌                                                                                   | 365/684 [01:07<00:41,  7.61it/s]
 54%|███████████████████████████████████████████████████████████████████████████████████████████████▊                                                                                   | 366/684 [01:07<01:08,  4.65it/s]
 54%|████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                                  | 369/684 [01:08<00:45,  7.00it/s]
 54%|█████████████████████████████████████████████████████████████████████████████████████████████████                                                                                  | 371/684 [01:08<00:46,  6.69it/s]
 54%|█████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                                 | 372/684 [01:08<00:53,  5.86it/s]
 55%|█████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                                 | 373/684 [01:08<00:55,  5.64it/s]
 55%|██████████████████████████████████████████████████████████████████████████████████████████████████▏                                                                                | 375/684 [01:09<00:43,  7.08it/s]
 55%|██████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                                | 377/684 [01:09<00:40,  7.66it/s]
 55%|██████████████████████████████████████████████████████████████████████████████████████████████████▉                                                                                | 378/684 [01:09<01:05,  4.66it/s]
 56%|███████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                               | 381/684 [01:10<00:45,  6.64it/s]
 56%|███████████████████████████████████████████████████████████████████████████████████████████████████▉                                                                               | 382/684 [01:10<00:43,  6.87it/s]
 56%|████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                                              | 383/684 [01:10<00:48,  6.14it/s]
 56%|████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                              | 384/684 [01:10<00:59,  5.06it/s]
 57%|█████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                             | 387/684 [01:10<00:39,  7.46it/s]
 57%|█████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                             | 388/684 [01:11<00:40,  7.35it/s]
 57%|█████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                                             | 389/684 [01:11<00:39,  7.42it/s]
 57%|██████████████████████████████████████████████████████████████████████████████████████████████████████                                                                             | 390/684 [01:11<01:12,  4.06it/s]
 57%|██████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                            | 391/684 [01:11<01:06,  4.42it/s]
 58%|███████████████████████████████████████████████████████████████████████████████████████████████████████                                                                            | 394/684 [01:12<00:38,  7.50it/s]
 58%|███████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                           | 396/684 [01:12<00:47,  6.02it/s]
 58%|████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                          | 399/684 [01:12<00:40,  7.11it/s]
 58%|████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                          | 400/684 [01:13<00:43,  6.56it/s]
 59%|█████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                                         | 402/684 [01:13<00:59,  4.74it/s]
 59%|█████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                         | 403/684 [01:13<00:57,  4.90it/s]
 59%|██████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                                        | 406/684 [01:14<00:38,  7.16it/s]
 60%|██████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                        | 407/684 [01:14<00:44,  6.25it/s]
 60%|███████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                       | 410/684 [01:14<00:36,  7.48it/s]
 60%|███████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                       | 411/684 [01:14<00:37,  7.24it/s]
 60%|███████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                                       | 412/684 [01:15<00:43,  6.19it/s]
 61%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                      | 414/684 [01:15<00:57,  4.71it/s]
 61%|████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                      | 415/684 [01:15<00:56,  4.75it/s]
 61%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                     | 418/684 [01:16<00:40,  6.64it/s]
 61%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                     | 419/684 [01:16<00:42,  6.24it/s]
 62%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                    | 422/684 [01:16<00:30,  8.59it/s]
 62%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                                    | 423/684 [01:16<00:39,  6.57it/s]
 62%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                                                    | 424/684 [01:17<00:42,  6.15it/s]
 62%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                                   | 425/684 [01:17<00:40,  6.41it/s]
 62%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                                   | 426/684 [01:17<01:06,  3.89it/s]
 63%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                   | 428/684 [01:17<00:46,  5.46it/s]
 63%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                  | 430/684 [01:18<00:39,  6.47it/s]
 63%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                                  | 431/684 [01:18<00:40,  6.25it/s]
 63%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                 | 434/684 [01:18<00:27,  9.01it/s]
 64%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                                 | 436/684 [01:19<00:43,  5.71it/s]
 64%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                                | 437/684 [01:19<00:45,  5.43it/s]
 64%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                                | 438/684 [01:19<00:50,  4.91it/s]
 64%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                                                | 439/684 [01:19<00:45,  5.44it/s]
 65%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                               | 442/684 [01:20<00:36,  6.69it/s]
 65%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                                               | 443/684 [01:20<00:41,  5.85it/s]
 65%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                              | 446/684 [01:20<00:26,  9.12it/s]
 65%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                             | 448/684 [01:21<00:42,  5.59it/s]
 66%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                             | 450/684 [01:21<00:41,  5.64it/s]
 66%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                             | 451/684 [01:21<00:41,  5.68it/s]
 66%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                            | 452/684 [01:21<00:37,  6.12it/s]
 66%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                            | 453/684 [01:21<00:38,  6.04it/s]
 67%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                            | 455/684 [01:22<00:37,  6.11it/s]
 67%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                           | 458/684 [01:22<00:25,  8.76it/s]
 67%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                          | 460/684 [01:23<00:40,  5.51it/s]
 68%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                                          | 462/684 [01:23<00:38,  5.74it/s]
 68%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                         | 463/684 [01:23<00:37,  5.90it/s]
 68%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                         | 464/684 [01:23<00:40,  5.42it/s]
 68%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                         | 465/684 [01:24<00:44,  4.90it/s]
 68%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                                        | 468/684 [01:24<00:28,  7.51it/s]
 69%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                        | 469/684 [01:24<00:29,  7.41it/s]
 69%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                                       | 471/684 [01:24<00:25,  8.51it/s]
 69%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                       | 472/684 [01:25<00:41,  5.10it/s]
 69%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                       | 473/684 [01:25<00:38,  5.43it/s]
 69%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                       | 474/684 [01:25<00:38,  5.43it/s]
 70%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                      | 476/684 [01:25<00:39,  5.21it/s]
 70%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                      | 477/684 [01:25<00:36,  5.74it/s]
 70%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                      | 478/684 [01:26<00:33,  6.08it/s]
 70%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                     | 480/684 [01:26<00:24,  8.47it/s]
 70%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                    | 482/684 [01:26<00:22,  9.04it/s]
 71%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                    | 484/684 [01:27<00:40,  4.91it/s]
 71%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                   | 486/684 [01:27<00:35,  5.63it/s]
 71%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                                   | 488/684 [01:27<00:36,  5.38it/s]
 71%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                                   | 489/684 [01:27<00:33,  5.80it/s]
 72%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                                  | 490/684 [01:28<00:31,  6.07it/s]
 72%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                  | 493/684 [01:28<00:21,  8.83it/s]
 72%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                                 | 495/684 [01:28<00:22,  8.53it/s]
 73%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                 | 496/684 [01:29<00:40,  4.64it/s]
 73%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                                 | 497/684 [01:29<00:38,  4.81it/s]
 73%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                                | 500/684 [01:29<00:33,  5.41it/s]
 73%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                               | 502/684 [01:29<00:26,  6.76it/s]
 74%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                               | 504/684 [01:30<00:21,  8.38it/s]
 74%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                              | 506/684 [01:30<00:19,  8.92it/s]
 74%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                              | 508/684 [01:31<00:36,  4.88it/s]
 74%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                             | 509/684 [01:31<00:35,  4.98it/s]
 75%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                             | 511/684 [01:31<00:26,  6.52it/s]
 75%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                            | 513/684 [01:31<00:29,  5.75it/s]
 75%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                            | 516/684 [01:31<00:20,  8.17it/s]
 76%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                           | 518/684 [01:32<00:18,  8.85it/s]
 76%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                           | 520/684 [01:32<00:31,  5.14it/s]
 76%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                          | 521/684 [01:33<00:32,  5.00it/s]
 76%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                          | 522/684 [01:33<00:29,  5.42it/s]
 77%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                         | 524/684 [01:33<00:29,  5.42it/s]
 77%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                         | 526/684 [01:33<00:23,  6.71it/s]
 77%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                        | 529/684 [01:33<00:17,  8.68it/s]
 78%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                        | 531/684 [01:34<00:18,  8.08it/s]
 78%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                       | 532/684 [01:34<00:34,  4.43it/s]
 78%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                       | 534/684 [01:35<00:28,  5.30it/s]
 78%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                       | 535/684 [01:35<00:26,  5.57it/s]
 78%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                      | 536/684 [01:35<00:26,  5.55it/s]
 79%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                      | 538/684 [01:35<00:19,  7.62it/s]
 79%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                     | 540/684 [01:35<00:17,  8.22it/s]
 79%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                                     | 542/684 [01:36<00:15,  9.11it/s]
 80%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                    | 544/684 [01:36<00:30,  4.54it/s]
 80%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                    | 546/684 [01:37<00:25,  5.36it/s]
 80%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                   | 547/684 [01:37<00:26,  5.20it/s]
 80%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                   | 549/684 [01:37<00:20,  6.49it/s]
 81%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                                  | 552/684 [01:37<00:16,  8.02it/s]
 81%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                                  | 553/684 [01:37<00:17,  7.59it/s]
 81%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                                  | 554/684 [01:38<00:18,  6.96it/s]
 81%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                                 | 555/684 [01:38<00:19,  6.50it/s]
 81%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                                 | 556/684 [01:38<00:28,  4.42it/s]
 82%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                 | 558/684 [01:39<00:26,  4.81it/s]
 82%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                                | 559/684 [01:39<00:28,  4.36it/s]
 82%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                                | 562/684 [01:39<00:16,  7.37it/s]
 83%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                               | 565/684 [01:39<00:15,  7.73it/s]
 83%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                              | 567/684 [01:40<00:18,  6.25it/s]
 83%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                              | 568/684 [01:40<00:21,  5.47it/s]
 83%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                              | 569/684 [01:40<00:19,  5.82it/s]
 83%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                             | 570/684 [01:41<00:22,  5.03it/s]
 83%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                             | 571/684 [01:41<00:23,  4.78it/s]
 84%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                            | 576/684 [01:41<00:09, 11.01it/s]
 85%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                           | 578/684 [01:42<00:17,  5.94it/s]
 85%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                           | 580/684 [01:42<00:17,  5.94it/s]
 85%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                          | 582/684 [01:43<00:18,  5.54it/s]
 85%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                          | 583/684 [01:43<00:19,  5.27it/s]
 85%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                          | 584/684 [01:43<00:18,  5.36it/s]
 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                          | 585/684 [01:43<00:19,  5.12it/s]
 86%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                         | 587/684 [01:43<00:14,  6.89it/s]
 86%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                        | 589/684 [01:44<00:17,  5.54it/s]
 86%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                        | 590/684 [01:44<00:15,  5.92it/s]
 86%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                        | 591/684 [01:44<00:14,  6.23it/s]
 87%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                        | 592/684 [01:45<00:24,  3.80it/s]
 87%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                       | 593/684 [01:45<00:20,  4.42it/s]
 87%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                       | 595/684 [01:45<00:13,  6.41it/s]
 87%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                       | 596/684 [01:45<00:13,  6.48it/s]
 87%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                      | 597/684 [01:45<00:14,  5.86it/s]
 87%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                      | 598/684 [01:45<00:15,  5.72it/s]
 88%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                      | 599/684 [01:46<00:14,  5.75it/s]
 88%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                      | 600/684 [01:46<00:15,  5.44it/s]
 88%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                     | 602/684 [01:46<00:11,  7.35it/s]
 88%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                     | 603/684 [01:46<00:13,  5.87it/s]
 88%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                     | 604/684 [01:47<00:19,  4.19it/s]
 88%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                    | 605/684 [01:47<00:20,  3.76it/s]
 89%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊                    | 607/684 [01:47<00:14,  5.27it/s]
 89%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                    | 608/684 [01:47<00:15,  4.82it/s]
 89%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                   | 610/684 [01:48<00:13,  5.33it/s]
 90%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                  | 613/684 [01:48<00:09,  7.13it/s]
 90%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋                  | 614/684 [01:48<00:09,  7.41it/s]
 90%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏                 | 616/684 [01:49<00:12,  5.48it/s]
 90%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍                 | 617/684 [01:49<00:13,  5.03it/s]
 90%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉                 | 619/684 [01:49<00:13,  4.79it/s]
 91%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎                | 620/684 [01:50<00:12,  5.25it/s]
 91%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌                | 621/684 [01:50<00:10,  5.79it/s]
 91%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████                | 623/684 [01:50<00:10,  5.80it/s]
 91%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎               | 624/684 [01:50<00:09,  6.27it/s]
 91%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌               | 625/684 [01:50<00:11,  5.33it/s]
 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████               | 627/684 [01:51<00:10,  5.63it/s]
 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌              | 629/684 [01:51<00:09,  5.58it/s]
 92%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊              | 630/684 [01:51<00:08,  6.00it/s]
 92%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏             | 631/684 [01:51<00:09,  5.32it/s]
 93%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉             | 634/684 [01:52<00:08,  6.16it/s]
 93%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍            | 636/684 [01:52<00:07,  6.33it/s]
 93%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋            | 637/684 [01:52<00:07,  6.55it/s]
 93%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉            | 638/684 [01:52<00:07,  6.23it/s]
 93%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏           | 639/684 [01:53<00:07,  6.17it/s]
 94%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍           | 640/684 [01:53<00:08,  5.05it/s]
 94%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋           | 641/684 [01:53<00:09,  4.48it/s]
 94%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌          | 644/684 [01:53<00:05,  7.24it/s]
 94%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊          | 645/684 [01:54<00:05,  7.43it/s]
 94%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████          | 646/684 [01:54<00:06,  5.46it/s]
 95%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌         | 648/684 [01:54<00:06,  5.39it/s]
 95%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊         | 649/684 [01:55<00:07,  4.92it/s]
 95%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋        | 652/684 [01:55<00:07,  4.57it/s]
 96%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍       | 655/684 [01:55<00:04,  6.33it/s]
 96%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋       | 656/684 [01:56<00:04,  6.56it/s]
 96%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏      | 658/684 [01:56<00:04,  5.90it/s]
 96%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍      | 659/684 [01:57<00:06,  3.82it/s]
 97%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉      | 661/684 [01:57<00:05,  4.04it/s]
 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌     | 663/684 [01:57<00:03,  5.37it/s]
 97%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊     | 664/684 [01:57<00:04,  4.86it/s]
 97%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████     | 665/684 [01:58<00:03,  4.86it/s]
 97%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎    | 666/684 [01:58<00:03,  5.06it/s]
 98%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌    | 667/684 [01:58<00:03,  4.77it/s]
 98%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊    | 668/684 [01:58<00:03,  4.44it/s]
 98%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████    | 669/684 [01:59<00:03,  4.78it/s]
 98%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▎   | 670/684 [01:59<00:03,  4.31it/s]
 98%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▌   | 671/684 [01:59<00:03,  4.25it/s]
 98%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▊   | 672/684 [01:59<00:02,  4.55it/s]
 98%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████   | 673/684 [01:59<00:02,  5.06it/s]
 99%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▍  | 674/684 [02:00<00:02,  4.59it/s]
 99%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▉  | 676/684 [02:00<00:01,  5.17it/s]
 99%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏ | 677/684 [02:00<00:01,  4.98it/s]
 99%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋ | 679/684 [02:00<00:00,  6.66it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▏| 681/684 [02:01<00:00,  7.24it/s]
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████▋| 683/684 [02:01<00:00,  8.98it/s]
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 684/684 [02:01<00:00,  5.64it/s]
# add the 180° meridian and copy values from the -180° meridian in order to stitch the map seamlessly
l_grid = np.hstack((l_grid, 180))
a_grid = np.pad(a_grid, pad_width=((0, 0), (0, 1)), mode="wrap")

Visualization#

We present the results in two formats:

  • Rectangular Projection: Useful for inspecting the raw data grid.

  • Mollweide/Aitoff Projection: Standard astronomical projection for full-sky maps.

fig = plt.figure(figsize=(8, 4))
ax = fig.subplots()

pcm = ax.pcolormesh(l_grid, b_grid, a_grid, vmin=0)
ax.set_xlim(-180, 180)
ax.set_ylim(-90, 90)

ax.set_xticks(np.arange(-180, 181, 60))
ax.set_yticks(np.arange(-90, 91, 30))
ax.set_xlabel('Galactic longitude [deg]')
ax.set_ylabel('Galactic latitude [deg]')

divider = make_axes_locatable(ax)
cax = divider.append_axes("right", size="3.5%", pad=0.3, axes_class=plt.Axes)
fig.colorbar(pcm, cax=cax, label="Deflection angle [deg]")

plt.show()
../../_images/3ff89aa146451bc2cf937c94d5d7316ff282792f0955be57678663d92072acb4.png
fig = plt.figure(figsize=(8, 4))
ax = fig.add_subplot(111, projection="aitoff")

pcm = ax.pcolormesh(np.deg2rad(l_grid), np.deg2rad(b_grid), a_grid, shading="gouraud", vmin=0)
ax.grid(True, linestyle=':', alpha=0.5)

divider = make_axes_locatable(ax)
cax = divider.append_axes("right", size="3.5%", pad=0.3, axes_class=plt.Axes)
fig.colorbar(pcm, cax=cax, label="Deflection angle [deg]")

plt.show()
../../_images/48e9d27faaa944b0546f7a0192a157c79858980b528fa1ac59b5c14b2f87857e.png
# fig.savefig("deflection_angles.pdf")

The resulting map shows the anisotropic nature of UHECR deflection.

  • Galactic Plane (\(b \approx 0\)): Higher deflection angles are typically observed due to the stronger magnetic fields in the Galactic disk.

  • High Latitudes: Deflections are generally smaller.

Potential ways to improve accuracy:

  • Decrease the integration time step (e.g., down to 1 day).

  • Increase the latitude/longitude grid resolution.