Siddhanta Parity API Documentation - v1.3.0
    Preparing search index...
    • Calculates equatorial coordinates of a Solar System body at a given time.

      Returns topocentric equatorial coordinates (right ascension and declination) in one of two different systems: J2000 or true-equator-of-date. Allows optional correction for aberration. Always corrects for light travel time (represents the object as seen by the observer with light traveling to the Earth at finite speed, not where the object is right now). Topocentric refers to a position as seen by an observer on the surface of the Earth. This function corrects for parallax of the object between a geocentric observer and a topocentric observer. This is most significant for the Moon, because it is so close to the Earth. However, it can have a small effect on the apparent positions of other bodies.

      Parameters

      • body: Body

        The body for which to find equatorial coordinates. Not allowed to be Body.Earth.

      • date: FlexibleDateTime

        Specifies the date and time at which the body is to be observed.

      • observer: Observer

        The location on the Earth of the observer.

      • ofdate: boolean

        Pass true to return equatorial coordinates of date, i.e. corrected for precession and nutation at the given date. This is needed to get correct horizontal coordinates when you call Horizon. Pass false to return equatorial coordinates in the J2000 system.

      • aberration: boolean

        Pass true to correct for aberration, or false to leave uncorrected.

      Returns EquatorialCoordinates

      The topocentric coordinates of the body as adjusted for the given observer.