Skip to content
World Magnetic Model 2015...from Python
C Other
  1. C 99.9%
  2. Other 0.1%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
archive
tests
wmm2015
.coveragerc
.flake8
.gitattributes
.gitignore
CODE_OF_CONDUCT.md
LICENSE.txt
MANIFEST.in
README.md
RunWMM2015.py
mypy.ini
pyproject.toml
pytest.ini
setup.cfg
setup.py

README.md

Actions Status

Python versions (PyPI) Downloads

WMM2015

WMM2015 World Magnetic Model...in simple, object-oriented Python. Tested on Linux, Mac and Windows. Most C compilers work, including GCC, PGI and Intel compilers. 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 Meson build system and your 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

You can’t perform that action at this time.