@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.
37 lines (36 loc) • 1.26 kB
TypeScript
/*****************************************************************************************************************/
import type { EquatorialCoordinate, Observer } from './common';
/*****************************************************************************************************************/
/**
*
*
* @class new Observation()
*
* @description A class to represent an observation of an astronomical target { ra, dec } at a specific
* location (geographic longitude, latitude and elevation above sea level) and datetime (in Universal
* Coordinated Time, UTC) on Earth.
*
*
*/
export declare class Observation extends Object {
target: EquatorialCoordinate;
ra: number;
dec: number;
az: number;
alt: number;
ha: number;
datetime: Date;
longitude: number;
latitude: number;
constructor({ ra, dec }: EquatorialCoordinate, observer?: Observer);
at({ datetime }: {
datetime: Date;
}): void;
setDatetime(datetime: Date): void;
private setEquatorialCoordinates;
private setHourAngle;
private setHorizontalCoordinates;
private setLongitude;
private setLatitude;
}
/*****************************************************************************************************************/