Skip to content

space-physics/WMM2015

Repository files navigation

WMM2015

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

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

Optionally, to get the cutting-edge development version:

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

python -m pip install -e wmm2015

This Python wrapper of WMM2015 uses our build-on-run technique. The first time you use WMM2015, you will see messages from the build system and C compiler.

Usage

an example script

python RunWMM2015.py

or as a Python module:

import wmm2015

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

Reference