libnova v 0.15.0
Atmospheric Refraction

Functions

double LIBNOVA_EXPORT ln_get_refraction_adj (double altitude, double atm_pres, double temp)
 Calculate the adjustment in altitude of a body due to atmospheric refraction.
 

Detailed Description

Functions relating to Atmospheric Refraction

All angles are expressed in degrees.

Function Documentation

◆ ln_get_refraction_adj()

double LIBNOVA_EXPORT ln_get_refraction_adj ( double altitude,
double atm_pres,
double temp )

Calculate the adjustment in altitude of a body due to atmospheric refraction.

Parameters
altitudeThe altitude of the object above the horizon in degrees
atm_presAtmospheric pressure in milibars
tempTemperature in degrees C.
Returns
Adjustment in objects altitude in degrees.

Calculate the adjustment in altitude of a body due to atmosphric refraction. This value varies over altitude, pressure and temperature.

Note: Default values for pressure and teperature are 1010 mBar and 10C respectively.

References ln_deg_to_rad().