Skip to main content

A Python wrapper to the FORTRAN code for the KT17 dynamic magnetic field model for Mercury's magnetosphere

Project description

kt17py

A Python wrapper to the FORTRAN code for the KT17 dynamic magnetic field model for Mercury's magnetosphere.

See Korth, H., Johnson, C. L., Philpott, L.,Tsyganenko, N. A., & Anderson, B. J.(2017). A dynamic model of Mercury’s magnetospheric magnetic field. Geophysical Research Letters, 44. https://doi.org/10.1002/2017GL074699

Alt text

How to use

import numpy as np
from kt17py.kt17 import *

kt17 = Kt17(0.39,50.0)
xyz_msm = np.array([[-2.0,0.0,0.5]])
b_msm = kt17.bfield(xyz_msm)

Testing builds

Since kt17py contains Fortran files that need to be compiled before use, the tests are currently run against the version of kt17py (if any) found on current PYTHONPATH.

python -m unittest tests/kt17.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

kt17py-0.0.2-cp37-cp37m-macosx_10_7_x86_64.whl (24.2 kB view hashes)

Uploaded CPython 3.7m macOS 10.7+ x86-64

kt17py-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (365.1 kB view hashes)

Uploaded CPython 3.6m

kt17py-0.0.2-cp36-cp36m-macosx_10_6_intel.whl (24.5 kB view hashes)

Uploaded CPython 3.6m macOS 10.6+ intel

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