/*****************************************************************************************************************/ /*****************************************************************************************************************/ import type { EquatorialCoordinate, EquatorialProperMotion, GeographicCoordinate, SphericalCoordinate } from './common'; /*****************************************************************************************************************/ /** * * getAngularSeparation() * * The angular separation between two objects is the angle in degrees between the two objects as seen by an observer on Earth. * * N.B. Per ISO 80000-2, the polar angle, θ, is the latitudinal angle of the coordinate, e.g., the * altitude or the declination of the object, and the azimuthal angle, φ, is its longitudinal * angle, e.g., the azimuth or the right ascension of the object. * * @param A - The spherical coordinate of the observed object. * @param B - The spherical coordinate of the observed object. * @returns The angular separation between the two objects in degrees. * */ export declare function getAngularSeparation(A: SphericalCoordinate, B: SphericalCoordinate): number; /*****************************************************************************************************************/ /** * * getAntipodeCoordinate() * * The antipode of an object is the point on the celestial sphere that is diametrically opposite to the observed object. * * @param A - The coordinate of the observed object, in Spherical coordinates (accepts Equatorial, Horizontal, and Ecliptic coordinates). * @returns The antipode of the observed object, in Spherical coordinates. */ export declare function getAntipodeCoordinate(A: SphericalCoordinate): SphericalCoordinate; /*****************************************************************************************************************/ /** * * getNormalizedSphericalCoordinate() * * Normalises a Spherical coordinate to a value between -90 and 90 degrees in the * polar angle and 0 to 360 degrees in the azimuthal angle. * * N.B. A polar angle beyond a pole is reflected back over that pole, and, as the point then lies * on the opposite side of the sphere, the azimuthal angle is rotated by 180°, e.g., a polar angle * of 92° is a polar angle of 88° at the antipodal azimuthal angle. * * @param A - The Spherical coordinate to normalise. * @returns The normalised Spherical coordinate. * */ export declare function getNormalizedSphericalCoordinate(A: SphericalCoordinate): SphericalCoordinate; /*****************************************************************************************************************/ /** * * getGreenwichSiderealTime() * * The Greenwich Sidereal Time (GST) is the hour angle of the vernal * equinox, the ascending node of the ecliptic on the celestial equator. * * @param datetime - The date for which to calculate the Greenwich Sidereal Time (GST). * @returns Greenwich Sidereal Time as number - the Greenwich Sidereal Time (GST) of the given date normalised to UTC. * */ export declare function getGreenwichSiderealTime(datetime: Date): number; /*****************************************************************************************************************/ /** * * @alias getGreenwichSiderealTime() * */ export declare const GST: typeof getGreenwichSiderealTime; /*****************************************************************************************************************/ /** * * getGreenwichApparentSiderealTime() * * The Greenwich Apparent Sidereal Time (GAST) is the hour angle of the true vernal equinox, * that is, the mean sidereal time (GMST) corrected for the equation of the equinoxes, which * accounts for the nutation of the Earth's axis of rotation. * * @param datetime - The date for which to calculate the Greenwich Apparent Sidereal Time (GAST). * @returns Greenwich Apparent Sidereal Time as number - the Greenwich Apparent Sidereal Time (GAST) of the given date normalised to UTC. * */ export declare function getGreenwichApparentSiderealTime(datetime: Date): number; /*****************************************************************************************************************/ /** * * @alias getGreenwichApparentSiderealTime() * */ export declare const GAST: typeof getGreenwichApparentSiderealTime; /*****************************************************************************************************************/ /** * * getLocalSiderealTime() * * The Local Sidereal Time (LST) is the hour angle of the vernal * equinox, the ascending node of the ecliptic on the celestial equator. * * @param datetime - The date for which to calculate the Local Sidereal Time (LST). * @param longitude - The longitude of the observer in degrees. * @returs Local Sidereal Time as number - the Local Sidereal Time (LST) of the given date normalised to UTC. * */ export declare function getLocalSiderealTime(datetime: Date, longitude: number): number; /*****************************************************************************************************************/ /** * * @alias getLocalSiderealTime() * */ export declare const LST: typeof getLocalSiderealTime; /*****************************************************************************************************************/ /** * * getLocalApparentSiderealTime() * * The Local Apparent Sidereal Time (LAST) is the hour angle of the true vernal equinox for * the observer's meridian, that is, the Greenwich Apparent Sidereal Time (GAST) corrected * for the longitude of the observer. * * @param datetime - The date for which to calculate the Local Apparent Sidereal Time (LAST). * @param longitude - The longitude of the observer in degrees. * @returns Local Apparent Sidereal Time as number - the Local Apparent Sidereal Time (LAST) of the given date normalised to UTC. * */ export declare function getLocalApparentSiderealTime(datetime: Date, longitude: number): number; /*****************************************************************************************************************/ /** * * @alias getLocalApparentSiderealTime() * */ export declare const LAST: typeof getLocalApparentSiderealTime; /*****************************************************************************************************************/ /** * * getHourAngle() * * The Hour Angle (HA) is the angular distance along the celestial equator * from the observer's meridian to the hour circle of a celestial body. * * @param datetime - The date for which to calculate the hour angle. * @param ra - Right Ascension of the target in degrees. * @param longitude - The longitude of the observer in degrees. * @returns The Hour Angle (HA) of the given date. * */ export declare function getHourAngle(datetime: Date, longitude: number, ra: number): number; /*****************************************************************************************************************/ /** * * getApparentHourAngle() * * The apparent Hour Angle (HA) is the angular distance along the celestial equator from the * observer's meridian to the hour circle of a celestial body, taken against the Local Apparent * Sidereal Time (LAST), e.g., referred to the true equinox of the date, which the equation of * the equinoxes displaces from the mean equinox by up to ~±1.1 seconds of time. * * N.B. The apparent hour angle is the hour angle of an apparent place, e.g., a right ascension * that carries the nutation in longitude, such as the geocentric apparent coordinate of the * Sun. The hour angle of such a coordinate taken against the mean sidereal time leaves the * nutation of the right ascension unbalanced, and so is displaced by the equation of the * equinoxes. * * @param datetime - The date for which to calculate the apparent hour angle. * @param ra - Apparent Right Ascension of the target in degrees. * @param longitude - The longitude of the observer in degrees. * @returns The apparent Hour Angle (HA) of the given date. * */ export declare function getApparentHourAngle(datetime: Date, longitude: number, ra: number): number; /*****************************************************************************************************************/ /** * * getParallacticAngle() * * The parallactic angle is the angle between the great circle that passes through * the celestial object and the zenith, and the great circle that passes through * the celestial object and the celestial pole. * * @param datetime - The date for which to calculate the parallactic angle for. * @param observer - The geographic coordinate of the observer. * @param target - The equatorial coordinate of the observed object. * @return The parallactic angle of the observed object in degrees. * */ export declare function getParallacticAngle(datetime: Date, observer: GeographicCoordinate, target: EquatorialCoordinate): number; /*****************************************************************************************************************/ /** * * getCorrectionToEquatorialForProperMotion() * * Calculates the correction terms (Δra, Δdec) to the equatorial coordinate of a target for the * proper motion of the target, e.g., the apparent motion of the target across the celestial * sphere, relative to the barycenter of the solar system, over the interval between the epoch of * the coordinate and the datetime given. The correction terms should be added to the target's * coordinate by the caller. * * N.B. The proper motion in right ascension is the great-circle rate, as published, and so it is * divided through by the cosine of the declination to obtain the rate of change of the right * ascension itself. * * N.B. The motion is treated as linear over the interval, which is accurate for the intervals of * decades that separate the epoch of a catalogue from the present day. A rigorous treatment * resolves the space motion of the target, for which its parallax and its radial velocity are * also required. * * @param datetime - The date to calculate the equatorial correction for. * @param target - The equatorial coordinate of the target, of its epoch, or of J2000. * @param properMotion - The proper motion of the target (in arcseconds per Julian year). * @returns The correction to the equatorial coordinate (in degrees) to add to the target's coordinate. * */ export declare function getCorrectionToEquatorialForProperMotion(datetime: Date, target: EquatorialCoordinate, properMotion: EquatorialProperMotion): EquatorialCoordinate; /*****************************************************************************************************************/