Skip to main content

WMM2015 geomagnetic model with simple object-oriented Python interface

Project description


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

WMM2015 World Magnetic 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.



for the latest release from PyPi:

python -m pip install wmm2015

Optionally, to get the cutting-edge development version:

git clone

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.


an example script


or as a Python module:

import wmm2015

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


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wmm2015-1.1.1.tar.gz (3.1 MB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page