@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.
57 lines (56 loc) • 2.87 kB
TypeScript
/*****************************************************************************************************************/
import type { EclipticCoordinate, EquatorialCoordinate, GalacticCoordinate, GeographicCoordinate, HorizontalCoordinate } from './common';
/*****************************************************************************************************************/
/**
*
* convertEclipticToEquatorial()
*
* Performs the conversion from Ecliptic to Equatorial coordinates for a given
* datetime and target (observer agnostic).
*
* @param date - The date and time of the observation for which to calculate the Horizontal coordinate
* @param target - The ecliptical coordinate of the observed object.
* @returns The equatorial coordinates of the target
*
*/
export declare const convertEclipticToEquatorial: (datetime: Date, target: EclipticCoordinate) => EquatorialCoordinate;
/*****************************************************************************************************************/
/**
*
* convertGalacticToEquatorial()
*
* @param target - The galactic coordinate of the observed object.
* @returns The equatorial coordinates of the target in J2000.0
*
*/
export declare const convertGalacticToEquatorial: (target: GalacticCoordinate) => EquatorialCoordinate;
/*****************************************************************************************************************/
/**
*
* convertEquatorialToHorizontal()
*
* Performs the conversion from Equatorial to Horizontal coordinates for a given
* datetime, observer, and target.
*
* @param date - The date and time of the observation for which to calculate the Horizontal coordinate
* @param observer - The geographic coordinate of the observer.
* @param target - The equatorial coordinate of the observed object.
* @returns The horizontal coordinates of the target
*
*/
export declare const convertEquatorialToHorizontal: (datetime: Date, observer: GeographicCoordinate, target: EquatorialCoordinate) => HorizontalCoordinate;
/*****************************************************************************************************************/
/**
*
* convertHorizontalToEquatorial()
*
* Performs the conversion from Horizontal to Equatorial coordinates for a given
* datetime, observer, and target.
*
* @param datetime - The date and time of the observation for which to calculate the Horizontal coordinate
* @param observer - The geographic coordinate of the observer.
* @param target - The horizontal coordinate of the observed object.
* @returns The equatorial coordinates of the target
*/
export declare const convertHorizontalToEquatorial: (datetime: Date, observer: GeographicCoordinate, target: HorizontalCoordinate) => EquatorialCoordinate;
/*****************************************************************************************************************/