Celestine API Documentation - v0.2.0
    Preparing search index...

    Function findRetrogradePeriods

    • Find all retrograde periods for a body in a date range.

      Parameters

      • body: CelestialBody

        Celestial body

      • startJD: number

        Start of search range

      • endJD: number

        End of search range

      Returns RetrogradePeriod[]

      Array of retrograde periods

      Each retrograde period is defined by:

      • Station Retrograde: When retrograde begins
      • Station Direct: When direct motion resumes
      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`);
      }