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

    Function estimatePassCount

    • Count the expected number of passes for a transit.

      Parameters

      • body: CelestialBody

        Transiting body

      • transitDurationDays: number

        Estimated transit duration

      Returns number

      Expected number of exact passes (1, 3, or 5)

      Fast planets (Sun, Moon, Mercury, Venus, Mars) typically have 1 pass. Slow planets (Jupiter through Pluto) may have 3 passes if the transit spans a retrograde period. Very slow planets or very long transits can have 5 passes.