1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
/*!
Physical constants.
*/
/// Speed of light in vacuum. Units: (m/s)
///
/// # References:
///
/// 1. D. Vallado, *Fundamentals of Astrodynamics and Applications (4th Ed.)*, 2010
pub const C_LIGHT: f64 = 299792458.0;
/// Astronomical Unit. Equal to the mean distance of the Earth from the sun.
/// TDB-compatible value. Units: (m)
///
/// # References:
///
/// 1. P. Gérard and B. Luzum, *IERS Technical Note 36*, 2010
pub const AU: f64 = 1.49597870700e11;
/// Earth's equatorial radius. Units: (m)
///
/// # References:
///
/// 1. J. Ries, S. Bettadpur, R. Eanes, Z. Kang, U. Ko, C. McCullough, P. Nagel, N. Pie, S. Poole, T. Richter, H. Save, and B. Tapley, Development and Evaluation of the Global Gravity Model GGM05, 2016
pub const R_EARTH: f64 = 6.378136300e6;
/// Earth's semi-major axis as defined by the WGS84 geodetic system.
/// Units: (m)
///
/// # References:
///
/// 1. NIMA Technical Report TR8350.2, Department of Defense World Geodetic System 1984, Its Definition and Relationships With Local Geodetic Systems
pub const WGS84_A: f64 = 6378137.0;
/// Earth's ellipsoidal flattening. WGS84 Value. Units: (m)
///
/// # References:
///
/// 1. NIMA Technical Report TR8350.2, Department of Defense World Geodetic System 1984, Its Definition and Relationships With Local Geodetic Systems
pub const WGS84_F: f64 = 1.0 / 298.257223563;
/// Earth's Gravitational constant. Units: [m^3/s^2]
///
/// # References:
///
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
/// Applications*, 2012.
pub const GM_EARTH: f64 = 3.986004415e14;
/// Earth's first eccentricity. WGS84 Value. Units: (dimensionless)
///
/// # References:
///
/// 1. NIMA Technical Report TR8350.2
pub const ECC_EARTH: f64 = 8.1819190842622e-2;
/// Earth's J2 zonal harmonic (oblateness). Units: (dimensionless)
///
/// Derived from the EGM2008 fully-normalized Stokes coefficient C_2,0 via
/// `J_n = -C_n,0 * sqrt(2n + 1)`.
///
/// # References:
///
/// 1. N. K. Pavlis, S. A. Holmes, S. C. Kenyon, J. K. Factor, *The development
/// and evaluation of the Earth Gravitational Model 2008 (EGM2008)*, J. Geophys.
/// Res., 117, B04406, 2012.
// TODO: Derive from EGM2008 via `J_n = -C_n,0 * sqrt(2n + 1)` instead of hardcoding value when const-sqrt is stabilized in Rust
pub const J2_EARTH: f64 = 1.0826261738522227e-03;
/// Earth's J3 zonal harmonic (pear-shape). Units: (dimensionless)
///
/// Derived from EGM2008 via `J_n = -C_n,0 * sqrt(2n + 1)`.
///
/// # References:
///
/// 1. Pavlis et al., *EGM2008*, J. Geophys. Res., 117, B04406, 2012.
pub const J3_EARTH: f64 = -2.5324105185677225e-06;
/// Earth's J4 zonal harmonic. Units: (dimensionless)
///
/// Derived from EGM2008 via `J_n = -C_n,0 * sqrt(2n + 1)`.
///
/// # References:
///
/// 1. Pavlis et al., *EGM2008*, J. Geophys. Res., 117, B04406, 2012.
pub const J4_EARTH: f64 = -1.6198975999169731e-06;
/// Earth's J5 zonal harmonic. Units: (dimensionless)
///
/// Derived from EGM2008 via `J_n = -C_n,0 * sqrt(2n + 1)`.
///
/// # References:
///
/// 1. Pavlis et al., *EGM2008*, J. Geophys. Res., 117, B04406, 2012.
pub const J5_EARTH: f64 = -0.22775359073083618e-06;
/// Earth's J6 zonal harmonic. Units: (dimensionless)
///
/// Derived from EGM2008 via `J_n = -C_n,0 * sqrt(2n + 1)`.
///
/// # References:
///
/// 1. Pavlis et al., *EGM2008*, J. Geophys. Res., 117, B04406, 2012.
pub const J6_EARTH: f64 = 0.5406665762838132e-06;
/// Earth axial rotation rate. Units: Units: [rad/s]
///
/// # References:
///
/// 1. D. Vallado, *Fundamentals of Astrodynamics and Applications (4th Ed.)*, p. 222, 2010
pub const OMEGA_EARTH: f64 = 7.292115146706979e-5;
/// Gravitational constant of the Sun. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_SUN: f64 = 132_712_440_041.939_4 * 1e9;
/// Nominal solar photosphere radius. Units: (m)
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const R_SUN: f64 = 6.957 * 1e8;
/// Nominal solar radiation pressure at 1 AU. Units: [N/m^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const P_SUN: f64 = 4.560E-6;
/// Nominal lunar radius. Units: (m)
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const R_MOON: f64 = 1738.0 * 1e3;
/// Gravitational constant of the Moon. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_MOON: f64 = 4902.800066 * 1e9;
/// Gravitational constant of the Mercury. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_MERCURY: f64 = 22031.780000 * 1e9;
/// Gravitational constant of the Venus. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_VENUS: f64 = 324858.592000 * 1e9;
/// Gravitational constant of the Mars. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_MARS: f64 = 42828.37521 * 1e9;
/// Gravitational constant of the Jupiter. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_JUPITER: f64 = 126712764.8 * 1e9;
/// Gravitational constant of the Saturn. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_SATURN: f64 = 37940585.2 * 1e9;
/// Gravitational constant of the Uranus. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_URANUS: f64 = 5794548.6 * 1e9;
/// Gravitational constant of the Neptune. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_NEPTUNE: f64 = 6836527.100580 * 1e9;
/// Gravitational constant of the Pluto. Units: [m^3/s^2]
///
/// # References:
///
/// 1. O. Montenbruck, and E. Gill, *Satellite Orbits: Models, Methods and
// Applications*, 2012.
pub const GM_PLUTO: f64 = 977.000000 * 1e9;