space-physics / wmm2020

WMM2020 geomagnetic model in Python

Home Page:https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml#downloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WMM2020

Actions Status Language grade: Python Python versions (PyPI) Downloads

WMM2020 World Magnetic Model...in simple, object-oriented Python. 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

Install

for the latest release from PyPi:

python -m pip install wmm2020

Optionally, to get the cutting-edge development version:

git clone https://github.com/space-physics/wmm2020

python -m pip install -e wmm2020

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.

Usage

an example script

python RunWMM2020.py

or as a Python module:

import wmm2020

mag = wmm2020.wmm(glat, glon, alt_km, yeardec)

Reference

About

WMM2020 geomagnetic model in Python

https://www.ngdc.noaa.gov/geomag/WMM/soft.shtml#downloads

License:Other


Languages

Language:C 99.9%Language:Python 0.1%Language:CMake 0.0%Language:Meson 0.0%Language:Makefile 0.0%