#magnetic #field #wmm #declination

bin+lib geomag-wmm

Calculate the Earth magnetic fields and their variation using WMM

1 unstable release

0.1.0 Sep 28, 2024

#233 in Science

Download history 178/week @ 2024-09-27 12/week @ 2024-10-04 6/week @ 2024-10-11 1/week @ 2024-10-18

197 downloads per month

MIT license

23KB
343 lines

geomag-wmm

WMM library used to calculate the magnetic declination.

You must download the WMM.COF file corresponding to the model you want to use, for instance, 2020-2025.

The code passes the 12 cases presented in the WMM description, Section 1.11 Table 6.

There is no guarantee that it is correct. It does not calculate the grid variation (yet) and does not warn the user if they calculate in a low precision area.

No runtime deps