## Gravity routines

Routine name Description
MakeGravGridDH Create 2D cylindrical maps on a flattened and rotating ellipsoid of all three components of the gravity field, the gravity disturbance, and the gravitational potential.
MakeGravGridPoint Determine the vector components of the gravitational acceleration at a single point.
MakeGravGradGridDH Calculate the components of the gravity “gradient” tensor on a flattened ellipsoid.
MakeGeoidGrid Create a global map of the geoid.
CilmPlus Calculate the gravitational potential exterior to relief along a spherical interface using the finite-amplitude algorithm of Wieczorek and Phillips (1998).
CilmMinus Calculate the gravitational potential interior to relief along a spherical interface using the finite-amplitude algorithm of Wieczorek and Phillips (1998).
CilmPlusRhoH Calculate the gravitational potential exterior to relief along a spherical interface with laterally varying density using the finite amplitude algorithm of Wieczorek (2007).
CilmMinusRhoH Calculate the gravitational potential interior to relief along a spherical interface with laterally varying density using the finite amplitude algorithm of Wieczorek (2007).
BAtoHilm Calculate iteratively the relief along an interface with constant density contrast that corresponds to a given Bouguer anomaly using the algorithm of Wieczorek and Phillips (1998).
BAtoHilmRhoH Iteratively calculate the relief along an interface with laterally varying density contrast that corresponds to a given Bouguer anomaly using the algorithm of Wieczorek and Phillips (1998).
DownContFilterMA Compute the minimum-amplitude downward continuation filter of Wieczorek and Phillips (1998).
DownContFilterMC Calculate a minimum-curvature downward continuation filter for a given spherical harmonic degree.
NormalGravity Calculate the normal gravity on a flattened ellipsoid using the formula of Somigliana.

## Magnetics routines

Routine name Description
MakeMagGridDH Create 2D cylindrical maps on a flattened ellipsoid of all three vector components of the magnetic field, the magnitude of the magnetic field, and the magnetic potential.
MakeMagGridPoint Determine the vector components of the magnetic field at a single point.
MakeMagGradGridDH Calculate the components of the magnetic field tensor on a flattened ellipsoid.
SHMagPowerSpectrum Compute the power spectrum of the magnetic field given the Schmidt semi-normalized magnetic potential spherical harmonic coefficients.
SHMagPowerL Compute the power of the magnetic field for a single degree L given the Schmidt semi-normalized magnetic potential spherical harmonic coefficients.
• Wieczorek, M. A. and R. J. Phillips, Potential anomalies on a sphere: applications to the thickness of the lunar crust, J. Geophys. Res., 103, 1715-1724, doi:10.1029/97JE03136, 1998.
• Wieczorek, M. A. Gravity and topography of the terrestrial planets, Treatise on Geophysics, 10, 165-206, doi:10.1016/B978-044452748-6/00156-5, 2007.