UNPKG

@observerly/astrometry

Version:

observerly's lightweight, zero-dependency, type safe astrometry library written in Typescript for calculating the position of celestial objects in the sky.

46 lines (45 loc) 2.34 kB
/*****************************************************************************************************************/ import type { EquatorialCoordinate, GeographicCoordinate } from './common'; /*****************************************************************************************************************/ /** * * getCorrectionToEquatorialForAnnualAberration() * * Corrects the equatorial coordinate of a target for aberration in * longitude and obliquity due to the apparent motion of the Earth. * * @param date - The date to correct the equatorial coordinate for. * @param target - The equatorial J2000 coordinate of the target. * @returns The corrected equatorial coordinate of the target. * */ export declare const getCorrectionToEquatorialForAnnualAberration: (datetime: Date, target: EquatorialCoordinate) => EquatorialCoordinate; /*****************************************************************************************************************/ /** * * getCorrectionToEquatorialForDiurnalAberration() * * Corrects the equatorial coordinate of a target for aberration in * longitude and obliquity due to the apparent motion of the Earth. * * @param date - The date to correct the equatorial coordinate for. * @param target - The equatorial J2000 coordinate of the target. * @returns The corrected equatorial coordinate of the target. * */ export declare const getCorrectionToEquatorialForDiurnalAberration: (datetime: Date, observer: GeographicCoordinate, target: EquatorialCoordinate) => EquatorialCoordinate; /*****************************************************************************************************************/ /** * * getCorrectionToEquatorialForAberration() * * Corrects the equatorial coordinate of a target for aberration in * longitude and obliquity due to the apparent motion of the Earth. * * @param date - The date to correct the equatorial coordinate for. * @param target - The equatorial J2000 coordinate of the target. * @returns The corrected equatorial coordinate of the target. * */ export declare const getCorrectionToEquatorialForAberration: (datetime: Date, observer: GeographicCoordinate, target: EquatorialCoordinate) => EquatorialCoordinate; /*****************************************************************************************************************/