#!/usr/bin/env python3 """Vertical geomagnetic cutoff rigidity at the paper's seven potential-gradient sites (our analysis). Standard library only. Usage: python3 -I cutoffs.py [OUT_JSON] Method: bilinear interpolation in latitude and longitude of the world grid of effective vertical cutoff rigidities for epoch 2015 in Smart & Shea (2020), "Vertical Geomagnetic Cutoff Rigidities for Epoch 2015", PoS(ICRC2019)1154, doi:10.22323/1.358.1154 (CC BY-NC-ND 4.0), Tables 1A and 1B (5 deg in latitude by 15 deg in longitude, IGRF-12, quiet field). Only the four grid values around each site are typed in below, with the table they come from. Storm-time cutoffs were lower (the main phase reaches about Dst -400 nT), and the field has changed since 2015, so these are approximate. For comparison, Stoermer's dipole estimate 14.9 cos^4(lambda) GV with the geomagnetic latitude of the paper's Table 1, which is rough and, in western Europe, far too low. GLE 74's highest proton rigidity was "at least 2.4 GV" (Papaioannou et al. 2025). """ import json import math import sys # site: (geographic lat, east lon, geomagnetic lat from the paper's Table 1, # {(grid lat, grid east lon): GV} from Smart & Shea Tables 1A (0-165 E) and 1B (180-345 E)) SITES = { "CASLEO (CAS1, CAS2)": (-31.80, 360 - 69.29, -22.55, {(-30, 285): 9.62, (-30, 300): 8.42, (-35, 285): 8.70, (-35, 300): 7.30}), "Pierre Auger (five mills)": (-35.2, 360 - 69.3, -25.9, {(-35, 285): 8.70, (-35, 300): 7.30, (-40, 285): 7.62, (-40, 300): 6.57}), "Huancayo (HYO)": (-12.04, 360 - 75.32, -2.80, {(-10, 270): 12.41, (-10, 285): 12.24, (-15, 270): 12.14, (-15, 285): 11.79}), "Evora (EVO)": (38.57, 360 - 7.90, 41.98, {(35, 345): 9.86, (35, 360): 9.87, (40, 345): 7.24, (40, 360): 7.33}), "Nagycenk (NCK)": (47.63, 16.72, 46.91, {(45, 15): 5.09, (45, 30): 5.07, (50, 15): 3.49, (50, 30): 3.49}), "Swider (SWI)": (52.12, 21.24, 50.56, {(50, 15): 3.49, (50, 30): 3.49, (55, 15): 2.18, (55, 30): 2.22}), "Reading (RDG)": (51.44, 360 - 0.94, 53.43, {(50, 345): 3.24, (50, 360): 3.40, (55, 345): 2.02, (55, 360): 2.10}), } # Table 1A's 0 E column is used as 360 E. Pierre Auger: the middle of the five mills, 2.1-47.6 km apart (Table 1 gives # geomagnetic latitudes of 25.71-26.06 S for them). def bilinear(lat, lon, grid): lats = sorted({k[0] for k in grid}); lons = sorted({k[1] for k in grid}) (a, b), (c, d) = lats, lons fy, fx = (lat - a) / (b - a), (lon - c) / (d - c) v = lambda la, lo: grid[(la, lo)] return (v(a, c) * (1 - fx) + v(a, d) * fx) * (1 - fy) + (v(b, c) * (1 - fx) + v(b, d) * fx) * fy res = {} for name, (lat, lon, mlat, grid) in SITES.items(): res[name] = {"smart_shea_2015_GV": round(bilinear(lat, lon, grid), 1), "stoermer_rough_GV": round(14.9 * math.cos(math.radians(mlat)) ** 4, 1)} print("%-30s Smart & Shea 2015: %4.1f GV Stoermer (rough): %4.1f GV" % (name, res[name]["smart_shea_2015_GV"], res[name]["stoermer_rough_GV"])) if len(sys.argv) > 1: with open(sys.argv[1], "w", encoding="utf-8", newline="\n") as fh: json.dump(res, fh, indent=1)