From 4f681919fbbf0f6c9c60cf68c27cab9ad1d7c313 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Thu, 15 Apr 2021 12:39:33 -0400 Subject: [PATCH] Python: defined constants for the radii of Jupiter's 4 largest moons. To assist software that wants to depict Jupiter and its 4 major moons as they would appear in a telescope, it is important to know their physical sizes. I already had constants for Jupiter's equatorial and polar radii. Here I add constants for the radii of the moons Io, Europa, Ganymede, and Callisto. They are all nearly spherical, so a single mean radius value is sufficient. --- demo/python/astronomy.py | 7 +++++++ generate/template/astronomy.py | 7 +++++++ source/python/README.md | 28 ++++++++++++++++++++++++++++ source/python/astronomy.py | 7 +++++++ 4 files changed, 49 insertions(+) diff --git a/demo/python/astronomy.py b/demo/python/astronomy.py index 2a5259ff..6c533f9f 100644 --- a/demo/python/astronomy.py +++ b/demo/python/astronomy.py @@ -47,6 +47,13 @@ JUPITER_EQUATORIAL_RADIUS_KM = 71492.0 # The equatorial radius of Jupite JUPITER_POLAR_RADIUS_KM = 66854.0 # The polar radius of Jupiter, expressed in kilometers. JUPITER_MEAN_RADIUS_KM = 69911.0 # The volumetric mean radius of Jupiter, expressed in kilometers. +# The radii of Jupiter's 4 largest moons were obtained from: +# https://ssd.jpl.nasa.gov/?sat_phys_par +IO_RADIUS_KM = 1821.6 # The radius of Jupiter's moon Io, expressed in kilometers. +EUROPA_RADIUS_KM = 1560.8 # The radius of Jupiter's moon Europa, expressed in kilometers. +GANYMEDE_RADIUS_KM = 2631.2 # The radius of Jupiter's moon Ganymede, expressed in kilometers. +CALLISTO_RADIUS_KM = 2410.3 # The radius of Jupiter's moon Callisto, expressed in kilometers. + _CalcMoonCount = 0 _DAYS_PER_TROPICAL_YEAR = 365.24217 diff --git a/generate/template/astronomy.py b/generate/template/astronomy.py index a01f75a6..64aae43f 100644 --- a/generate/template/astronomy.py +++ b/generate/template/astronomy.py @@ -47,6 +47,13 @@ JUPITER_EQUATORIAL_RADIUS_KM = 71492.0 # The equatorial radius of Jupite JUPITER_POLAR_RADIUS_KM = 66854.0 # The polar radius of Jupiter, expressed in kilometers. JUPITER_MEAN_RADIUS_KM = 69911.0 # The volumetric mean radius of Jupiter, expressed in kilometers. +# The radii of Jupiter's 4 largest moons were obtained from: +# https://ssd.jpl.nasa.gov/?sat_phys_par +IO_RADIUS_KM = 1821.6 # The radius of Jupiter's moon Io, expressed in kilometers. +EUROPA_RADIUS_KM = 1560.8 # The radius of Jupiter's moon Europa, expressed in kilometers. +GANYMEDE_RADIUS_KM = 2631.2 # The radius of Jupiter's moon Ganymede, expressed in kilometers. +CALLISTO_RADIUS_KM = 2410.3 # The radius of Jupiter's moon Callisto, expressed in kilometers. + _CalcMoonCount = 0 _DAYS_PER_TROPICAL_YEAR = 365.24217 diff --git a/source/python/README.md b/source/python/README.md index 86b73cd0..bed94a8d 100644 --- a/source/python/README.md +++ b/source/python/README.md @@ -158,6 +158,13 @@ However, because Python defines the [angular conversion functions](https://docs. --- + +### `CALLISTO_RADIUS_KM = 2410.3` + +**The radius of Jupiter's moon Callisto, expressed in kilometers.** + +--- + ### `C_AUDAY = 173.1446326846693` @@ -165,6 +172,27 @@ However, because Python defines the [angular conversion functions](https://docs. --- + +### `EUROPA_RADIUS_KM = 1560.8` + +**The radius of Jupiter's moon Europa, expressed in kilometers.** + +--- + + +### `GANYMEDE_RADIUS_KM = 2631.2` + +**The radius of Jupiter's moon Ganymede, expressed in kilometers.** + +--- + + +### `IO_RADIUS_KM = 1821.6` + +**The radius of Jupiter's moon Io, expressed in kilometers.** + +--- + ### `JUPITER_EQUATORIAL_RADIUS_KM = 71492.0` diff --git a/source/python/astronomy.py b/source/python/astronomy.py index 2a5259ff..6c533f9f 100644 --- a/source/python/astronomy.py +++ b/source/python/astronomy.py @@ -47,6 +47,13 @@ JUPITER_EQUATORIAL_RADIUS_KM = 71492.0 # The equatorial radius of Jupite JUPITER_POLAR_RADIUS_KM = 66854.0 # The polar radius of Jupiter, expressed in kilometers. JUPITER_MEAN_RADIUS_KM = 69911.0 # The volumetric mean radius of Jupiter, expressed in kilometers. +# The radii of Jupiter's 4 largest moons were obtained from: +# https://ssd.jpl.nasa.gov/?sat_phys_par +IO_RADIUS_KM = 1821.6 # The radius of Jupiter's moon Io, expressed in kilometers. +EUROPA_RADIUS_KM = 1560.8 # The radius of Jupiter's moon Europa, expressed in kilometers. +GANYMEDE_RADIUS_KM = 2631.2 # The radius of Jupiter's moon Ganymede, expressed in kilometers. +CALLISTO_RADIUS_KM = 2410.3 # The radius of Jupiter's moon Callisto, expressed in kilometers. + _CalcMoonCount = 0 _DAYS_PER_TROPICAL_YEAR = 365.24217