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
How to use
import numpy as np
from kt17py.kt17 import *
kt17 = Kt17(0.39,0.50)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kt17py-0.0.1.tar.gz
(6.0 kB
view hashes)
Built Distributions
Close
Hashes for kt17py-0.0.1-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d029abf9bb5deba35ddc6f9f224a5c4bfd7643c47b349e826f9cf25901a9d61b |
|
MD5 | 97a5705ad42edce54773c51ee1af2f5b |
|
BLAKE2b-256 | 5dae3d27d18d24fd782b79130120e865ec8f75e32b6e5b1ba178c1d4a81f40e8 |
Close
Hashes for kt17py-0.0.1-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce56fefba04d57c05ddafda5f300be4186ba87f42535d56275d73821e28b83ec |
|
MD5 | 95a699b02e3513ec930125c719868559 |
|
BLAKE2b-256 | 8a73477b20c68811ff05ed3decdf0bbedd0a3e7417ed3717fc881718b4373b90 |