University of Colorado at Boulder University of Colorado CU Home Search A to Z Index Map
Laboratory for Atmospheric and Space Physics

Community Code

The following links are for community code that may be useful to the wider Jovian community, replicated in Matlab, IDL and Python3. All inputs are expected to be in a right handed System III (1965) co-ordinates, where RJ = 71,492 km.

Current Sheet Model: Con2020 Code
These codes will take inputs in Cartesian ([x,y,z] in units of RJ) or Spherical ([r, Co-Lat., East Long.] in units of RJ and radians) and return the Con2020 Current Sheet field model values ([Bx, By, Bz] or [Br, Btheta, Bphi] respectively, in units of nT). The codes and instructions are on Github(s), see links below. A PDF documentation file describes the Connerney current sheet model and general code development (equations used, numerical integration assumptions, accuracy testing, etc.).

IDLhttps://github.com/marissav06/con2020
MATLABhttps://github.com/marissav06/con2020
Python3https://github.com/gabbyprovan/con2020/
Table of Current Sheet Model Githubs

Internal Field Codes (JRM33 + others)
These codes will take inputs in Cartesian ([x,y,z] in units of RJ) or Spherical ([r, Co-Lat., East Long.]
in units of RJ and radians) and return the internal planetary field model values ([Bx, By, Bz] or
[Br, Btheta, Bphi] respectively, in units of nT). Codes are available for JRM33, JRM09, ISaAC, VIPAL, VIT4, VIP4 and O6. There are two sets of options for you, the Leicester Python code and the US code, all available for PC, Mac or Linux. For older models that used different values of RJ, our codes below still expect inputs where RJ = 71,492 km, and will adjust the RJ for you within the code.

Python3 (Leicester)https://github.com/mattkjames7/JupiterMagPackage
IDL (US)https://github.com/rjwilson-LASP/PSHStandalone Files
MATLAB (US)https://github.com/rjwilson-LASP/PSHStandalone Files
Python3 (US)https://github.com/rjwilson-LASP/PSHStandalone Files
Table of Internal Field Githubs
  • The Leicester Python code is available from https://github.com/mattkjames7/JupiterMag for install, and includes extra models, field line tracing and more flexible options. It also includes a Con2020 option.
  • The US codes are available in MATLAB, IDL or Python (all essentially line for line translations of each other). Just download the file you want from https://github.com/rjwilson-LASP/PSH and run.

Other Codes By Other People
These are a collection of other codes we’re aware of – but are not part of this community effort.