Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Searches for when the Earth and a given body reach a relative ecliptic longitude separation.

      Searches for the date and time the relative ecliptic longitudes of the specified body and the Earth, as seen from the Sun, reach a certain difference. This function is useful for finding conjunctions and oppositions of the planets. For the opposition of a superior planet (Mars, Jupiter, ..., Pluto), or the inferior conjunction of an inferior planet (Mercury, Venus), call with targetRelLon = 0. The 0 value indicates that both planets are on the same ecliptic longitude line, ignoring the other planet's distance above or below the plane of the Earth's orbit. For superior conjunctions, call with targetRelLon = 180. This means the Earth and the other planet are on opposite sides of the Sun.

      Parameters

      • body: Body

        Any planet other than the Earth.

      • targetRelLon: number

        The desired angular difference in degrees between the ecliptic longitudes of body and the Earth. Must be in the range (-180, +180].

      • startDate: FlexibleDateTime

        The date and time after which to find the next occurrence of the body and the Earth reaching the desired relative longitude.

      Returns AstroTime

      The time when the Earth and the body next reach the specified relative longitudes.