Find all retrograde periods for a body in a date range.
Celestial body
Start of search range
End of search range
Array of retrograde periods
Each retrograde period is defined by:
const periods = findRetrogradePeriods(CelestialBody.Mercury, jdStart, jdEnd);for (const period of periods) { console.log(`Mercury Rx from ${period.stationRetroJD} to ${period.stationDirectJD}`); console.log(`Duration: ${period.durationDays.toFixed(1)} days`);} Copy
const periods = findRetrogradePeriods(CelestialBody.Mercury, jdStart, jdEnd);for (const period of periods) { console.log(`Mercury Rx from ${period.stationRetroJD} to ${period.stationDirectJD}`); console.log(`Duration: ${period.durationDays.toFixed(1)} days`);}
Find all retrograde periods for a body in a date range.