mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-19 06:17:03 -04:00
Starting development for calculating Jupiter's moons.
I am starting the process of implementing calculation of Jupiter's four largest moons: Io, Europa, Ganymede, Callisto. This commit just contains constant declarations for the equatorial, polar, and volumetric mean radii of Jupiter. The positions of the moons will be related to the center of Jupiter and be expressed in Jupiter equatorial radius units, so I felt it would be good to give users a way to convert to kilometers, which can in turn be converted to AU.
This commit is contained in:
@@ -172,6 +172,27 @@ However, because Python defines the [angular conversion functions](https://docs.
|
||||
|
||||
---
|
||||
|
||||
<a name="JUPITER_EQUATORIAL_RADIUS_KM"></a>
|
||||
### `JUPITER_EQUATORIAL_RADIUS_KM = 71492.0`
|
||||
|
||||
**The equatorial radius of Jupiter, expressed in kilometers.**
|
||||
|
||||
---
|
||||
|
||||
<a name="JUPITER_POLAR_RADIUS_KM"></a>
|
||||
### `JUPITER_POLAR_RADIUS_KM = 66854.0`
|
||||
|
||||
**The polar radius of Jupiter, expressed in kilometers.**
|
||||
|
||||
---
|
||||
|
||||
<a name="JUPITER_MEAN_RADIUS_KM"></a>
|
||||
### `JUPITER_MEAN_RADIUS_KM = 69911.0`
|
||||
|
||||
**The volumetric mean radius of Jupiter, expressed in kilometers.**
|
||||
|
||||
---
|
||||
|
||||
<a name="classes"></a>
|
||||
## Classes
|
||||
|
||||
|
||||
@@ -39,6 +39,14 @@ import re
|
||||
KM_PER_AU = 1.4959787069098932e+8 #<const> The number of kilometers per astronomical unit.
|
||||
C_AUDAY = 173.1446326846693 #<const> The speed of light expressed in astronomical units per day.
|
||||
|
||||
# Jupiter radius data are nominal values obtained from:
|
||||
# https://www.iau.org/static/resolutions/IAU2015_English.pdf
|
||||
# https://nssdc.gsfc.nasa.gov/planetary/factsheet/jupiterfact.html
|
||||
|
||||
JUPITER_EQUATORIAL_RADIUS_KM = 71492.0 #<const> The equatorial radius of Jupiter, expressed in kilometers.
|
||||
JUPITER_POLAR_RADIUS_KM = 66854.0 #<const> The polar radius of Jupiter, expressed in kilometers.
|
||||
JUPITER_MEAN_RADIUS_KM = 69911.0 #<const> The volumetric mean radius of Jupiter, expressed in kilometers.
|
||||
|
||||
_CalcMoonCount = 0
|
||||
|
||||
_DAYS_PER_TROPICAL_YEAR = 365.24217
|
||||
|
||||
Reference in New Issue
Block a user