Skip to content

marissav06/jovian_jrm09_internal_matlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jovian_jrm09_internal_matlab

This repository contains MATLAB code used to calculate the JRM09 model (Connerney et al., 2018) of Jupiter's internal magnetic field model in spherical (rtp) or cartesian (xyz) coordinates (note that jovian_jrm09_internal_xyz.m calls jovian_jrm09_internal_rtp.m so users should download both files).

Please see https://github.com/marissav06/jovian_jrm09_internal for the repository containing IDL code for the JRM09 model.

This code can be used with con2020_model_rtp.m and con2020_model_xyz.m, which gives the field produced by the Connerney et al. (2020) current sheet.

Required inputs (System III Spherical, right handed):

  • r_rj - radial distance, in Rj.
  • colat_rads - colatitude, in radians. Value(s) should be 0 <= colat_rads <= pi.
  • elong_rads - East longitude, right handed, in radians. Value(s) should be 0 <= elong_rads <= 2pi.

Required inputs (System III Cartesian):

  • x_rj - Jupiter SYSIII right-handed position in x, in Rj.
  • y_rj - Jupiter SYSIII right-handed position in y, in Rj.
  • z_rj - Jupiter SYSIII right-handed position in z, in Rj.

Outputs:

Magnetic field vector from the JRM09 internal magnetic field model, [Br, Btheta, Bphi] (spherical coordinates) or [Bx, By, Bz] (cartesian) in units of nT.

Usage:

  • For internal field only: B = jovian_jrm09_internal_rtp(r_rj, colat_rads, elong_rads)
  • For full field model: B = jovian_jrm09_internal_rtp(r_rj, colat_rads, elong_rads) + con2020_model_rtp(eq_type, r_rj, colat_rads, elong_rads)

This code was written by Marissa Vogt (mvogt@bu.edu) and Rob Wilson and was last updated January 2022. It is based on a routine originally written by K. Khurana and translated into IDL by Marissa Vogt in 2009 (for the VIP4 internal field model). Thanks to Masafumi Imai for providing code for his version of the JRM09 model, which was used to test and validate this code, and to Gabby Provan, Matt James, and Marty Brennan for helpful discussions.

About

MATLAB code for the JRM09 magnetic field model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages