MagFieldPlanet:

Path: SC/Environs

% Computes the magnetic field using Schmidt normalized coefficients.
   This only uses g and h and does not handle time derivatives of g or h. 

   For Neptune it is best to call this function with an array of r
   since every time it is called it reads in a text file of g and h
   coefficients.

   For a demo of the magnetic field of Neptune, Jupiter and Saturn,
   type MagFieldPlanet.
--------------------------------------------------------------------------
   Form:
   b = MagFieldPlanet( r, g, h, a, nMax )

   or

   b = MagFieldPlanet( r, planet, nMax )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r           (3,:)  Position in planet fixed coordinates (km)
   g           (n,n)  g Schmidt normalized coefficents (nT)
   h           (n,n)  h Schmidt normalized coefficients (nT)
   a           (1,1)  Planet radius (km)
   nMax        (1,1)  Order of model (optional)

   or

   r           (3,:)  Position in planet fixed coordinates (km)
   planet      (1,:)  Planet name
   nMax        (1,1)  Order of model (optional)

   -------
   Outputs
   -------
   b           (3,:)  The magnetic field  (T)

--------------------------------------------------------------------------
   References: Wertz, J., Spacecraft Attitude Determination and Control,
               Kluwer, 1976, pp. 779-781. 
               Jursa, Adolph S., ed., Handbook of Geophysics and the
               Space Environment, Air Force Geophysics Laboratory, 
               1985, p. 4-28.
--------------------------------------------------------------------------
   See also: MagFieldData, SCHarm, PGauss, Cart2Sph
--------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
SC: Environs/MagFieldData
SC: Environs/ReadMagField
SC: SCData/sCTConstants
SC: SCMat/IGRF11
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeleteCell
Common: General/ListCases
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Transform/Cart2Sph
Math: Analysis/PGauss
Math: Analysis/SCHarm
Math: Linear/Cross
Math: Linear/Unit

Back to the SC Module page