Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.18 KB

jupiter-moons.md

File metadata and controls

11 lines (6 loc) · 1.18 KB

//astronomy/io.github.cosinekitty.astronomy/jupiterMoons

jupiterMoons

fun jupiterMoons(time: Time): JupiterMoonsInfo

Calculates jovicentric positions and velocities of Jupiter's largest 4 moons.

Calculates position and velocity vectors for Jupiter's moons Io, Europa, Ganymede, and Callisto, at the given date and time. The vectors are jovicentric (relative to the center of Jupiter). Their orientation is the Earth's equatorial system at the J2000 epoch (EQJ). The position components are expressed in astronomical units (AU), and the velocity components are in AU/day.

To convert to heliocentric position vectors, call helioVector with Body.Jupiter to get Jupiter's heliocentric position, then add the jovicentric positions. Likewise, you can call geoVector to convert to geocentric positions; however, you will have to manually correct for light travel time from the Jupiter system to Earth to figure out what time to pass to jupiterMoons to get an accurate picture of how Jupiter and its moons look from Earth.