/*****************************************************************************************************************/ /*****************************************************************************************************************/ import type { HorizontalCoordinate } from './common'; /*****************************************************************************************************************/ /** * * The temperature of the air at the surface of the Earth (in Kelvin) an observation is taken to be * made at where the caller gives none, e.g., 283.15 K, which is the temperature Sæmundsson's * formula is stated at, and at which the refraction at the horizon is the standard ~34 arcminutes * that the -0.833° altitude of sunrise and sunset is drawn from. * */ export declare const DEFAULT_SURFACE_TEMPERATURE = 283.15; /*****************************************************************************************************************/ /** * * The pressure of the air at the surface of the Earth (in Pascals) an observation is taken to be * made at where the caller gives none, e.g., one standard atmosphere at sea level, 101325 Pa. * */ export declare const DEFAULT_SURFACE_PRESSURE = 101325; /*****************************************************************************************************************/ /** * * The humidity of the air at the surface of the Earth an observation is taken to be made at where * the caller gives none, e.g., dry air. * * N.B. The humidity is the partial pressure of water vapour in the air (in Pascals), and is not a * relative humidity, e.g., it is a fraction of the pressure of the air and not of its saturation. * */ export declare const DEFAULT_SURFACE_HUMIDITY = 0; /*****************************************************************************************************************/ /** * * getRefraction() * * The refraction correction to the observed object is an adjustment to the observed object * based on pressure and temperature effects. * * N.B. There is no correction for the azimuthal angle. * * N.B. The refraction is resolved below the horizon, down to a true altitude of -1°: an object at * a true altitude of -0.57° is refracted to the horizon, which is why the Sun rises before it * crosses the horizon geometrically. Below -1° the approximation is no longer physical, and the * correction is taken to be zero, as getCorrectionToHorizontalForRefraction() likewise leaves such * an object uncorrected. * * @param target - The horizontal coordinate of the observed object. * @param temperature - The temperature in Kelvin. * @param pressure - The pressure in Pascals. * @returns The refraction correction to the observed object (in degrees). * */ export declare function getRefraction(target: HorizontalCoordinate, temperature?: number, pressure?: number): number; /*****************************************************************************************************************/ /** * * getCorrectionToHorizontalForRefraction() * * The correction to the HorizontalCoordinate for refraction is an adjustment to the observed * HorizontalCoordinate based on pressure and temperature effects. * * @param target - The horizontal coordinate of the observed object. * @param temperature - The temperature in Kelvin. * @param pressure - The pressure in Pascals. * @returns The horizontal coordinate of the observed object corrected for atmospheric refraction. * */ export declare function getCorrectionToHorizontalForRefraction(target: HorizontalCoordinate, temperature?: number, pressure?: number): HorizontalCoordinate; /*****************************************************************************************************************/ /** * * getAirmass() * * The airmass is the path length of light through the Earth's atmosphere. The airmass is a measure * of the amount of atmosphere that light must pass through to reach the observer. The airmass * is inversely proportional to the altitude of the observed object, and is at a minimum of ~1 at * the zenith, rising to ~38 at the horizon. * * @see Kasten, F., & Young, A. T. (1989). “Revised Optical Air Mass Tables and Approximation Formula.” Applied Optics, 28(22), 4735–4738. * * @param target - The horizontal coordinate of the observed object. * @returns the airmass of the observed object. * */ export declare function getAirmass(target: HorizontalCoordinate): number; /*****************************************************************************************************************/ /** * * getAirRefractiveIndex() * * The refractive index of air is the ratio of the speed of light in a vacuum to the speed of * light in air. It is the quantity that gives rise to atmospheric refraction, and is dependent * on the wavelength of the observed light, as well as on the temperature, pressure and humidity * of the air the light is propagating through. * * N.B. The modified Edlén equation is valid for wavelengths between 300nm and 1700nm, for air * at a carbon dioxide concentration of 450 parts per million. * * @see Birch, K. P., & Downs, M. J. (1994). “Correction to the Updated Edlén Equation for the Refractive Index of Air.” Metrologia, 31(4), 315–316. * * @param wavelength - The wavelength of the observed light (in metres). * @param temperature - The temperature in Kelvin. * @param pressure - The pressure in Pascals. * @param humidity - The partial pressure of water vapour in the air (in Pascals). * @throws An error if any of the parameters are outside of the bounds of the equation. * @returns The refractive index of the air for the observed wavelength. * */ export declare function getAirRefractiveIndex(wavelength?: number, temperature?: number, pressure?: number, humidity?: number): number; /*****************************************************************************************************************/