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.

40 lines (39 loc) 1.77 kB
/*****************************************************************************************************************/ import type { GeographicCoordinate } from './common'; /*****************************************************************************************************************/ /** * * convertJulianDateToUTC() * * @param JD - the Julian Date to convert to UTC * @returns Date - the UTC date from the Julian Date * */ export declare const convertJulianDateToUTC: (JD: number) => Date; /*****************************************************************************************************************/ /** * * convertLocalSiderealTimeToGreenwhichSiderealTime() * * Makes the conversion from Greenwich Sidereal Time to Local Sidereal Time. * * @param LST - a given Local Sidereal Time * @param observer - The geographic coordinate of the observer. * @returns GST - the Greenwich Sidereal Time for the given Local Sidereal Times * */ export declare const convertLocalSiderealTimeToGreenwhichSiderealTime: (LST: number, observer: GeographicCoordinate) => number; /*****************************************************************************************************************/ /** * * convertGreenwhichSiderealTimeToUniversalTime() * * Makes the conversion from Greenwich Sidereal Time to Universal Coordinated Time. * * @param date - The datetime object to convert. * @param GST - The Greenwich Sidereal Time (GST) to convert. * @returns UTC - The Universal Coordinated Time (UTC) of the given date normalised to UTC. * */ export declare const convertGreenwhichSiderealTimeToUniversalTime: (GST: number, date: Date) => Date; /*****************************************************************************************************************/