@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.
17 lines (16 loc) • 874 B
TypeScript
/*****************************************************************************************************************/
import type { Observer } from './common';
/*****************************************************************************************************************/
/**
*
* getLocalHorizon()
*
* Calculates the local horizon depression for a given observer (in degrees).
*
* @param h - The observer for which to calculate the local horizon depression., or a number representing
* the observer's elevation above sea level (in SI metres).
* @param k - The observer's atmospheric refraction (unitless)
* @returns The local horizon depression (in degrees).
*/
export declare const getLocalHorizon: (h: number | Observer, k?: number) => number;
/*****************************************************************************************************************/