Path: SCPro/ProEnvirons
% Computes the geocentric magnetic field based on a tilted dipole model. This function includes all planets with magnetic fields. It calls BDipole if planet is not entered or it is the Earth. Type BDipolePlanet for a demonstration of a spacecraft around jupiter -------------------------------------------------------------------------- Form: b = BDipolePlanet( r, jD, planet ) -------------------------------------------------------------------------- ------ Inputs ------ r (3,:) Position vector in the ECI frame (km) jD (1,:) Julian date planet (1,:) Planet name (not case sensitive) ------- Outputs ------- b (3,:) Magnetic field in the ECI frame (T) -------------------------------------------------------------------------- Reference: https://nssdc.gsfc.nasa.gov/planetary/factsheet/ --------------------------------------------------------------------------