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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.7mmacOS 10.7+ x86-64

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

Uploaded CPython 3.6m

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

Uploaded CPython 3.6mmacOS 10.6+ Intel (x86-64, i386)

File details

Details for the file kt17py-0.0.2-cp37-cp37m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: kt17py-0.0.2-cp37-cp37m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: CPython 3.7m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.2

File hashes

Hashes for kt17py-0.0.2-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0f0e0171c09c5a699711c5b071a0b541f0de2c5d0b118ebc57e7619a06aed6fb
MD5 0ff091da69e8a492a377b323218977ba
BLAKE2b-256 bcf1926d63b65cc885cee304b206652949343156a33fa943124b49d4a9fbc23a

See more details on using hashes here.

File details

Details for the file kt17py-0.0.2-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: kt17py-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 365.1 kB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.2

File hashes

Hashes for kt17py-0.0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 7b89a114e7dfe86f3f80c88cd71c0b77381b12f9adc8bb39214b65d2e4d34c59
MD5 a8becfff829ddaa10dc8dd6d1fc3b000
BLAKE2b-256 863fcdab70826115596a65ea135323b51d7cdccd950ac4c06af35f655ef1c8bc

See more details on using hashes here.

File details

Details for the file kt17py-0.0.2-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: kt17py-0.0.2-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: CPython 3.6m, macOS 10.6+ Intel (x86-64, i386)
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.2

File hashes

Hashes for kt17py-0.0.2-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 eeaa4efc5a57808449ecc69037402c04c604dde22c1a50de28464b14da62b4cf
MD5 714307e35d41381f4de3abe800e6a9f5
BLAKE2b-256 d91191ad5f973d285c465781629027bb6c2c5cb495a3789f18f952d9572e309f

See more details on using hashes here.

Supported by

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