-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
126 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include src/wmm2020/meson.build src/wmm2020/CMakeLists.txt src/wmm2020/setup.cmake src/wmm2020/test_input.asc src/wmm2020/WMM.COF | ||
recursive-include src/wmm2020/src *.c | ||
recursive-include src/wmm2020/src *.h | ||
include src/wmm2025/meson.build src/wmm2025/CMakeLists.txt src/wmm2025/setup.cmake src/wmm2025/test_input.asc src/wmm2025/WMM.COF | ||
recursive-include src/wmm2025/src *.c | ||
recursive-include src/wmm2025/src *.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
# WMM2020 | ||
# WMM2025 | ||
|
||
![Actions Status](https://github.com/space-physics/wmm2020/workflows/ci/badge.svg) | ||
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/space-physics/wmm2020.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/space-physics/wmm2020/context:python) | ||
[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/wmm2020.svg)](https://pypi.python.org/pypi/wmm2020) | ||
[![Downloads](http://pepy.tech/badge/wmm2020)](http://pepy.tech/project/wmm2020) | ||
![Actions Status](https://github.com/space-physics/wmm2025/workflows/ci/badge.svg) | ||
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/space-physics/wmm2025.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/space-physics/wmm2025/context:python) | ||
[![Python versions (PyPI)](https://img.shields.io/pypi/pyversions/wmm2025.svg)](https://pypi.python.org/pypi/wmm2025) | ||
[![Downloads](http://pepy.tech/badge/wmm2025)](http://pepy.tech/project/wmm2025) | ||
|
||
|
||
WMM2020 World Magnetic Model...in simple, object-oriented Python. | ||
WMM2025 World Magnetic Model...in simple, object-oriented Python. | ||
[WMM2015](https://github.com/space-physics/wmm2015) is also available. | ||
Tested on Linux, Mac and Windows. | ||
Most C compilers work. | ||
At this time Visual Studio is not supported since MSVC doesn't export function symbols without additional headers, | ||
which is typically done with something like SWIG. | ||
|
||
![image](./src/wmm2020/tests/incldecl.png) | ||
![image](./src/wmm2025/tests/incldecl.png) | ||
|
||
## Install | ||
|
||
for the latest release from PyPi: | ||
|
||
```sh | ||
python -m pip install wmm2020 | ||
python -m pip install wmm2025 | ||
``` | ||
|
||
Optionally, to get the cutting-edge development version: | ||
|
||
```sh | ||
git clone https://github.com/space-physics/wmm2020 | ||
git clone https://github.com/space-physics/wmm2025 | ||
|
||
python -m pip install -e wmm2020 | ||
python -m pip install -e wmm2025 | ||
``` | ||
|
||
This Python wrapper of WMM2020 uses our build-on-run technique. | ||
The first time you use WMM2020, you will see messages from the Meson build system and your C compiler. | ||
This Python wrapper of WMM2025 uses our build-on-run technique. | ||
The first time you use WMM2025, you will see messages from the Meson build system and your C compiler. | ||
|
||
|
||
## Usage | ||
|
||
an example script | ||
|
||
```sh | ||
python RunWMM2020.py | ||
python RunWMM2025.py | ||
``` | ||
|
||
or as a Python module: | ||
|
||
```python | ||
import wmm2020 | ||
import wmm2025 | ||
|
||
mag = wmm2020.wmm(glat, glon, alt_km, yeardec) | ||
mag = wmm2025.wmm(glat, glon, alt_km, yeardec) | ||
``` | ||
|
||
## Reference | ||
|
||
* WMM2020 [inclination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2020/WMM2020_I_MERC.pdf) | ||
* WMM2020 [declination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2020/WMM2020_D_MERC.pdf) | ||
* WMM2025 [inclination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2025/WMM2025_I_MERC.pdf) | ||
* WMM2025 [declination map](https://www.ngdc.noaa.gov/geomag/WMM/data/WMM2025/WMM2025_D_MERC.pdf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
2025.0 WMM-2025 11/13/2024 | ||
1 0 -29351.8 0.0 12.0 0.0 | ||
1 1 -1410.8 4545.4 9.7 -21.5 | ||
2 0 -2556.6 0.0 -11.6 0.0 | ||
2 1 2951.1 -3133.6 -5.2 -27.7 | ||
2 2 1649.3 -815.1 -8.0 -12.1 | ||
3 0 1361.0 0.0 -1.3 0.0 | ||
3 1 -2404.1 -56.6 -4.2 4.0 | ||
3 2 1243.8 237.5 0.4 -0.3 | ||
3 3 453.6 -549.5 -15.6 -4.1 | ||
4 0 895.0 0.0 -1.6 0.0 | ||
4 1 799.5 278.6 -2.4 -1.1 | ||
4 2 55.7 -133.9 -6.0 4.1 | ||
4 3 -281.1 212.0 5.6 1.6 | ||
4 4 12.1 -375.6 -7.0 -4.4 | ||
5 0 -233.2 0.0 0.6 0.0 | ||
5 1 368.9 45.4 1.4 -0.5 | ||
5 2 187.2 220.2 0.0 2.2 | ||
5 3 -138.7 -122.9 0.6 0.4 | ||
5 4 -142.0 43.0 2.2 1.7 | ||
5 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 5 -0.6 -9.1 -0.3 -0.1 | ||
10 6 -0.9 0.4 0.0 0.1 | ||
10 7 1.5 -4.2 -0.1 0.0 | ||
10 8 0.9 -3.8 -0.1 -0.1 | ||
10 9 -2.7 0.9 -0.0 0.2 | ||
10 10 -3.9 -9.1 -0.0 -0.0 | ||
11 0 2.9 0.0 0.0 0.0 | ||
11 1 -1.5 0.0 -0.0 -0.0 | ||
11 2 -2.5 2.9 0.0 0.1 | ||
11 3 2.4 -0.6 0.0 -0.0 | ||
11 4 -0.6 0.2 0.0 0.1 | ||
11 5 -0.1 0.5 -0.1 -0.0 | ||
11 6 -0.6 -0.3 0.0 -0.0 | ||
11 7 -0.1 -1.2 -0.0 0.1 | ||
11 8 1.1 -1.7 -0.1 -0.0 | ||
11 9 -1.0 -2.9 -0.1 0.0 | ||
11 10 -0.2 -1.8 -0.1 0.0 | ||
11 11 2.6 -2.3 -0.1 0.0 | ||
12 0 -2.0 0.0 0.0 0.0 | ||
12 1 -0.2 -1.3 0.0 -0.0 | ||
12 2 0.3 0.7 -0.0 0.0 | ||
12 3 1.2 1.0 -0.0 -0.1 | ||
12 4 -1.3 -1.4 -0.0 0.1 | ||
12 5 0.6 -0.0 -0.0 -0.0 | ||
12 6 0.6 0.6 0.1 -0.0 | ||
12 7 0.5 -0.1 -0.0 -0.0 | ||
12 8 -0.1 0.8 0.0 0.0 | ||
12 9 -0.4 0.1 0.0 -0.0 | ||
12 10 -0.2 -1.0 -0.1 -0.0 | ||
12 11 -1.3 0.1 -0.0 0.0 | ||
12 12 -0.7 0.2 -0.1 -0.1 | ||
999999999999999999999999999999999999999999999999 | ||
999999999999999999999999999999999999999999999999 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2025.5 E F30000 70.3 30.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters