Post · 3 min read· pp. 20–24

Constants

Constants

Common constant values used in AHRS and Geodesy. The constants are defined in SI Units (second, metre, kilogram) unless otherwise noted, or when constants are unitless.

Basic Trigonometry

NameDescriptionValue
M_PIPi3.141592653589793
DEG2RADDegrees to Radians0.017453292519943
RAD2DEGRadians to Degrees57.29577951308232

Geodesy

The following constants are set as defined in the latest report of the World Geodetic System 1984 [198414] and can be compared against [CV01]. The CODATA constants [MNT16] and [TMNT21b] are differentiated with an ending indicating their epoch as CODATA2014 and CODATA2018 [TMNT21a] respectively.

NameDescriptionValue
DYNAMIC_ELLIPTICITYDynamic Ellipticity3.2737949e-3
EARTH_ATMOSPHERE_MASSMass of Atmosphere including water vapor5.148e18
EARTH_AUTHALIC_RADIUSEarth’s Radius of equal area sphere6371007.1810
EARTH_AXIS_RATIOEarth’s Axis ratio9.96647189335e-1
EARTH_C20_DYNEarth’s Dynamic 2nd Degree Zonal Harmonic-4.84165143790815e-4
EARTH_C22_DYNEarth’s Dynamic 2nd Degree Sectorial Harmonic2.43938357328313e-6
EARTH_C20_GEOEarth’s Geographic 2nd Degree Zonal Harmonic-4.84166774985e-4
EARTH_EQUATOR_RADIUSEarth’s Semi-major axis (Equatorial Radius)6378137.0
EARTH_EQUIVOLUMETRIC_RADIUSEarth’s Radius of equal volume sphere6371000.79
EARTH_FIRST_ECCENTRICITYEarth’s First Eccentricity8.1819190842622e-2
EARTH_FIRST_ECCENTRICITY_2Earth’s First Eccentricity Squared6.6943799901414e-3
EARTH_FLATTENING_INVEarth’s Flattening Factor298.257223563
EARTH_FLATTENINGEarth’s Flattening Factor (reduced)1/298.257223563
EARTH_GMEarth’s Gravitational Constant (GM)3.986004418e14
EARTH_GM_1Earth’s GM without Atmosphere3.986000982e14
EARTH_GM_2Earth Atmosphere’s Gravitational Constant3.4359e8
EARTH_GM_GPSNAVEarth’s GM for GPS Navigation3.9860050e14
EARTH_J2Earth’s Dynamic Form Factor1.08263e-3
EARTH_LINEAR_ECCENTRICITYEarth’s Linear Eccentricity5.2185400842339e5
EARTH_MEAN_RADIUSEarth’s Arithmetic Mean radius6371200.0
EARTH_MEAN_AXIAL_RADIUSEarth’s Mean Radius of the three semi-axes6371008.7714
EARTH_MASSEarth’s Mass (Atmosphere inclulded)5.9721864e24
EARTH_POLAR_CURVATURE_RADIUSEarth’s Polar Radius of Curvature6_399_593.6258
EARTH_POLAR_RADIUSEarth’s Semi-minor axis (Polar Radius)6356752.3142
EARTH_ROTATIONEarth’s Rotation rate7.292115e-5
EARTH_SECOND_ECCENTRICITYEarth’s Second Eccentricity8.2094437949696e-2
EARTH_SECOND_ECCENTRICITY_2Earth’s Second Eccentricity Squared6.739496742276486e-3
EARTH_SIDEREAL_DAYEarth’s duration of sidereal day86164.09053083288
EQUATORIAL_NORMAL_GRAVITYEarth’s Normal Gravity at the Equator9.7803253359
LIGHT_SPEEDVelocity of light in vacuum2.99792458e8
MEAN_NORMAL_GRAVITYEarth’s Mean Normal Gravity9.7976432223
NORMAL_GRAVITY_FORMULAConstant for Normal Gravity Formula3.449786506841e-3
NORMAL_GRAVITY_POTENTIALEarth’s Normal Gravity Potential6.26368517146
POLAR_NORMAL_GRAVITYEarth’s Normal Gravity at the Pole9.8321849379
SOMIGLIANA_GRAVITYConstant for Somigliana’s Formula1.931852652458e-3
UNIVERSAL_GRAVITATION_CODATA2014Universal Gravitation defined in CODATA20146.67408e-11
UNIVERSAL_GRAVITATION_CODATA2018Universal Gravitation defined in CODATA20186.67430e-11
UNIVERSAL_GRAVITATION_WGS84Universal Gravitation defined in WGS846.67428e-11

The values above are set as defined in [198414], although most of these values can be also obtained with the class WGS of this package, which builds the World’s Geodetic System independently.

The elemental defining parameters (equatorial radius, flattening, gravitational constant and rotational velocity) are set, by default, to that of Earth’s, and all other parameters are derived from these. Just to compare:

python
>>> import ahrs
>>> ahrs.EARTH_EQUATOR_RADIUS
6378137.0
>>> ahrs.EARTH_POLAR_RADIUS
6356752.3142
>>> ahrs.EARTH_FIRST_ECCENTRICITY_2
0.0066943799901414
>>> wgs = ahrs.utils.WGS()  # Default model is Earth's
>>> wgs.a
6378137.0
>>> wgs.b
6356752.314245179
>>> wgs.first_eccentricity_squared
0.0066943799901413165

These values are, so far, determined for the Earth. However, other celestial bodies have been measured and their values are, as defined in [AAhearnC+18], [Par19] and [Par24], set as follows:

NameValue
MOON_EQUATOR_RADIUS1738100.0
MOON_POLAR_RADIUS1736000.0
MOON_MASS7.346e22
MOON_ROTATION1.109027709148159e-7
MOON_J22.027e-4
MERCURY_EQUATOR_RADIUS2440530.0
MERCURY_POLAR_RADIUS2438260.0
MERCURY_ROTATION1.2399326882596827e-6
MERCURY_MASS3.30114e23
MERCURY_J25.03e-5
VENUS_EQUATOR_RADIUS6051800.0
VENUS_POLAR_RADIUS6051800.0
VENUS_ROTATION-2.9923691869737844e-7
VENUS_MASS4.86747e24
VENUS_J24.458e-6
MARS_EQUATOR_RADIUS3396190.0
MARS_POLAR_RADIUS3376200.0
MARS_ROTATION7.088235959185674e-5
MARS_MASS6.41712e23
MARS_J21.96045e-3
JUPITER_EQUATOR_RADIUS71492000.0
JUPITER_POLAR_RADIUS66854000.0
JUPITER_ROTATION1.758518138029551e-4
JUPITER_MASS1.898187e27
JUPITER_J21.4736e-2
SATURN_EQUATOR_RADIUS60268000.0
SATURN_POLAR_RADIUS54364000.0
SATURN_ROTATION1.637884057802486e-4
SATURN_MASS5.683174e26
SATURN_J21.6298e-2
URANUS_EQUATOR_RADIUS25559000.0
URANUS_POLAR_RADIUS24973000.0
URANUS_ROTATION-1.012376653716682e-4
URANUS_MASS8.68127e25
URANUS_J23.343430e-3
NEPTUNE_EQUATOR_RADIUS24764000.0
NEPTUNE_POLAR_RADIUS24341000.0
NEPTUNE_ROTATION1.083382527619075e-4
NEPTUNE_MASS1.024126e26
NEPTUNE_J23.411e-3
PLUTO_EQUATOR_RADIUS1188300.0
PLUTO_POLAR_RADIUS1188300.0
PLUTO_ROTATION-1.138559183467410e-05
PLUTO_MASS1.303e22