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.

Files for kt17py, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size kt17py-0.0.2-cp36-cp36m-macosx_10_6_intel.whl (24.5 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size kt17py-0.0.2-cp36-cp36m-manylinux1_x86_64.whl (365.1 kB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size kt17py-0.0.2-cp37-cp37m-macosx_10_7_x86_64.whl (24.2 kB) File type Wheel Python version cp37 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page