Skip to main content

Python implementation of the JRM09 model

Project description

jrm09

JRM09 model (Connerney et al. 2018) implementation using Python.

Installation

Install using pip:

pip3 install jrm09 --user

Or by cloning this repo:

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

#EITHER create a wheel and install (replace X.X.X with the version number):
python3 setup.py bdist_wheel
pip3 install dist/jrm09-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 (jrm09.ModelCart()) or in spherical polar form (jrm09.Model()), e.g.:

import jrm09

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

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

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

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

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

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

jrm09test.png

References

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

jrm09-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jrm09-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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 jrm09-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d899cf43465123d6e0de00efd4d8a20b9193b7079f5ded1979df662fcc124b73
MD5 dfb6816064b7ecdc655280c908d3f43d
BLAKE2b-256 6fe9c9e421c34c88c81b426f52e3585fe4a57acc31779d7c53376f5e250937c1

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