gravityzonal
R2026bImplement zonal harmonic representation of planetary gravity
Syntax
Description
Default Degree of Harmonic and Planetary Model
[
implements the mathematical representation of zonal harmonic planetary gravity based on
planetary gravitational potential. The function takes an m-by-3 matrix
that contains planet-centered planet-fixed coordinates from the center of the planet in
meters. This function calculates the arrays of m gravity values in the
x-, y-, and z-axes of the
planet-centered planet-fixed coordinates.gravityXcoord gravityYcoord,gravityZcoord] = gravityzonal(planetCoord)
This function does not include the potential due planet rotation, which excludes the centrifugal effects of planetary rotation and the effects of a precessing reference frame.
[
specifies the action for out-of-range input.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,action)
Degree of Harmonic Model and Planetary Model
[
uses the degree of harmonic model. gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,degreeGravityModel)
[
uses the planetary model.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,planetModel)
[
uses the degree of harmonic model and planetary model.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,planetModel,degreeGravityModel)
[
specifies the action for out-of-range input.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,planetModel,degreeGravityModel,action)
Custom Planetary Model
[
uses the equatorial radius, planetary gravitational parameter, and zonal harmonic
coefficients for the custom planetary model.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,'Custom',Re,planetaryGravitional,zonalHarmonicCoeff)
[
specifies the action for out-of-range input.gravityXcoord,gravityYcoord,gravityZcoord] = gravityzonal(planetCoord,'Custom',Re,planetaryGravitional,zonalHarmonicCoeff,action)
Examples
Input Arguments
Output Arguments
Algorithms
gravityzonal is implemented using the following planetary parameter
values for each planet.
| Planet | Equatorial Radius (Re) in Meters | Gravitational Parameter (GM) in m3/s2 | Zonal Harmonic Coefficients (J Values) |
|---|---|---|---|
| Earth | 6378.137e3 | 3.986004418e14 | [ 1.08262617385222e-3 -2.53241051856772e-6 -1.61989759991697e-6 ] |
| Jupiter | 7.1492e7 | 1.267127678577960e17 | [14736e-6 0 -0.00058] |
| Mars | 3.3962e6 | 4.2828314258067e13 | [ 1960.45e-6 0.000036 ] |
| Mercury | 2.4397e6 | 2.20320804864179e13 | 50.3e-6 |
| Moon | 1.7381e6 | 4.902801076e12 | 202.7e-6 |
| Neptune | 2.4764e7 | 6.836534063879261e15 | 3411e-6 |
| Saturn | 6.0268e7 | 3.794062606113729e16 | [16298e-6 0 -0.001] |
| Uranus | 2.5559e7 | 5.794549007071873e15 | 3343.43e-6 |
| Venus | 6.0518e6 | 3.248585988264598e14 | 4.458e-6 |
References
[1] NASA. "Planetary Fact Sheet." NASA National Space Science Data Center. Accessed June 30, 2026. https://nssdc.gsfc.nasa.gov/planetary/factsheet/.
[2] National Geospatial-Intelligence Agency. World Geodetic System 1984: Its Definition and Relationships with Local Geodetic Systems. Version 1.0.0. Department of Defense, July 8, 2014.
[3] Pavlis, N. K., S. A. Holmes, S. C. Kenyon, and J. K. Factor. "The Development and Evaluation of the Earth Gravitational Model 2008 (EGM2008)." Journal of Geophysical Research 117, B04406 (2012). doi:10.1029/2011JB008916.