Skip to main content

Python implementation of the VIP4 model

Project description

vip4model

VIP4 model (Connerney et al. 1998) implementation using Python.

Installation

Install using pip:

pip3 install vip4model --user

Or by cloning this repo:

git clone https://github.com/mattkjames7/vip4model.git
cd vip4model

#EITHER create a wheel and install (replace X.X.X with the version number):
python3 setup.py bdist_wheel
pip3 install dist/vip4model-X.X.X-py3-none-any.whl --user

#OR install directly using setup.py
python3 setup.py install --user

Usage

The model accepts right-handed System III coordinates either in Cartesian form (vip4model.ModelCart()) or in spherical polar form (vip4model.Model()), e.g.:

import vip4model

#get some Cartesian field vectors (MaxDeg keyword is optional)
Bx,By,Bz = vip4model.ModelCart(x,y,z,MaxDeg=4)

#or spherical polar ones
Br,Bt,Bp = vip4model.Model(r,theta,phi,MaxDeg=4)

Please read the docstrings for vip4model.Model() and vip4model.ModelCart() using help or ? e.g. help(vip4model.Model) .

There is also a test function which requires matplotlib to be installed:

#evaluate the model at some R
vip4model.Test(R=0.85)

which produces this (based on figure 4 of Connerney et al. 2018):

vip4test.png

References

Connerney, J. E. P., Acuña, M. H., Ness, N. F., and Satoh, T. (1998), New models of Jupiter's magnetic field constrained by the Io flux tube footprint, J. Geophys. Res., 103( A6), 11929– 11939, doi:10.1029/97JA03726.

Connerney, J. E. P., Kotsiaros, S., Oliversen, R. J., Espley, J. R., Joergensen, J. L., Joergensen, P. S., et al. (2018). A new model of Jupiter's magnetic field from Juno's first nine orbits. Geophysical Research Letters, 45, 2590– 2596. https://doi.org/10.1002/2018GL077312

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 Distribution

vip4model-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file vip4model-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vip4model-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.4

File hashes

Hashes for vip4model-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cf03b90dc4162653bdeb4989721f01443638b845749f76eae7cfdd4efb4f7df
MD5 9efdabfa54b61a06ca29019c6a713dcf
BLAKE2b-256 76c09c26ae7fd00b0fc23490109ec83b48459eed5e1bb0a531aa745a8851fb99

See more details on using hashes here.

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