Skip to content

Commit 64a90bc

Browse files
authored
Correct one AU to 149597870.700 km exactly (#31)
As per the XXVIII General Assembly of the International Astronomical Union, (2012 Resolution B). And subsequent change by BIPM, the International Bureau of Weights and Measures, to the Non-SI units accepted for use with the SI units. Also, added some explicit official references to the value provided.
1 parent 147b1ae commit 64a90bc

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

libsgp4/Globals.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,13 @@ const double kF = 1.0 / 298.26;
6666
* earth rotation per sideral day
6767
*/
6868
const double kOMEGA_E = 1.00273790934;
69-
const double kAU = 1.49597870691e8;
69+
/* 1 AU, here given in km, per the IAU 2012 Resolution B2
70+
* and the BIPM published "The International System of Units (SI), 9th ed.",
71+
* Table 8 of "Non-SI units accepted for use with the SI units".
72+
* Ref: https://www.iau.org/static/resolutions/IAU2012_English.pdf, accessed 2022-12-17
73+
* Ref: https://www.bipm.org/documents/20126/41483022/SI-Brochure-9.pdf, accessed 2022-12-17
74+
*/
75+
const double kAU = 1.49597870700e8;
7076

7177
const double kSECONDS_PER_DAY = 86400.0;
7278
const double kMINUTES_PER_DAY = 1440.0;

0 commit comments

Comments
 (0)