From 68fb4edcc37c3303bfcd1a05bb166bc5aa98f2a6 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 8 Jan 2025 10:52:48 +0000 Subject: [PATCH] update to world magnetic model 2025 (WMM2025) --- geomag.c | 178 +++++++++++++++++++++++++++---------------------------- 1 file changed, 89 insertions(+), 89 deletions(-) diff --git a/geomag.c b/geomag.c index 3064aaee..ddb7734e 100644 --- a/geomag.c +++ b/geomag.c @@ -90,97 +90,97 @@ int geomag_init() // also make sure the indentation stays as it is ... some code depends on that. wmm_string = strdup("\ - 2020.0 WMM-2020 12/10/2019\n\ - 1 0 -29404.5 0.0 6.7 0.0\n\ - 1 1 -1450.7 4652.9 7.7 -25.1\n\ - 2 0 -2500.0 0.0 -11.5 0.0\n\ - 2 1 2982.0 -2991.6 -7.1 -30.2\n\ - 2 2 1676.8 -734.8 -2.2 -23.9\n\ - 3 0 1363.9 0.0 2.8 0.0\n\ - 3 1 -2381.0 -82.2 -6.2 5.7\n\ - 3 2 1236.2 241.8 3.4 -1.0\n\ - 3 3 525.7 -542.9 -12.2 1.1\n\ - 4 0 903.1 0.0 -1.1 0.0\n\ - 4 1 809.4 282.0 -1.6 0.2\n\ - 4 2 86.2 -158.4 -6.0 6.9\n\ - 4 3 -309.4 199.8 5.4 3.7\n\ - 4 4 47.9 -350.1 -5.5 -5.6\n\ - 5 0 -234.4 0.0 -0.3 0.0\n\ - 5 1 363.1 47.7 0.6 0.1\n\ - 5 2 187.8 208.4 -0.7 2.5\n\ - 5 3 -140.7 -121.3 0.1 -0.9\n\ - 5 4 -151.2 32.2 1.2 3.0\n\ - 5 5 13.7 99.1 1.0 0.5\n\ - 6 0 65.9 0.0 -0.6 0.0\n\ - 6 1 65.6 -19.1 -0.4 0.1\n\ - 6 2 73.0 25.0 0.5 -1.8\n\ - 6 3 -121.5 52.7 1.4 -1.4\n\ - 6 4 -36.2 -64.4 -1.4 0.9\n\ - 6 5 13.5 9.0 -0.0 0.1\n\ - 6 6 -64.7 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n\ + 12 12 -0.7 0.2 -0.1 -0.1\n\ 999999999999999999999999999999999999999999999999\n\ 999999999999999999999999999999999999999999999999\n\ ");