|
CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | Params |
| Atmospheric conditions for refraction calculations. More... | |
Enumerations | |
| enum class | Model : uint8_t { BENNETT , SAEMUNDSSON } |
| Atmospheric refraction model selector. More... | |
Functions | |
| auto | bennett (const toolbox::AngleDeg &apparent_alt) -> toolbox::AngleDeg |
| Bennett's formula for atmospheric refraction from apparent altitude. | |
| auto | saemundsson (const toolbox::AngleDeg &true_alt) -> toolbox::AngleDeg |
| Saemundsson's formula for atmospheric refraction from true (geometric) altitude. | |
| auto | at_horizon (const Params ¶ms={}) -> toolbox::AngleDeg |
| Compute the refraction at the apparent horizon (apparent altitude = 0°). | |
Variables | |
| constexpr double | NATIVE_TEMPERATURE_C |
| Native temperature for the refraction models, in degrees Celsius. | |
| constexpr double | NATIVE_PRESSURE_HPA |
| Native pressure for the refraction models, in hectopascals. | |
| constexpr double | NATIVE_TEMPERATURE_K |
| The 283 K numerator in the T/P correction factor, derived from 10°C = 273 + 10 K. | |
| constexpr double | SAEMUNDSSON_HORIZON_TOL_DEG |
| Iteration tolerance for Saemundsson's horizon refraction, in degrees. | |
| constexpr std::size_t | SAEMUNDSSON_HORIZON_MAX_ITER |
| Maximum number of iterations for Saemundsson's horizon solve. | |
|
strong |
|
inlinenodiscard |
Compute the refraction at the apparent horizon (apparent altitude = 0°).
| params | The atmospheric conditions. Defaults to 15°C/1013.25 hPa/Bennett. |
|
inlinenodiscard |
Bennett's formula for atmospheric refraction from apparent altitude.
| apparent_alt | The apparent altitude of the body (what an observer sees), in degrees. |
|
inlinenodiscard |
Saemundsson's formula for atmospheric refraction from true (geometric) altitude.
| true_alt | The true geometric altitude of the body, in degrees. |
|
inlineconstexpr |
Native pressure for the refraction models, in hectopascals.
|
inlineconstexpr |
Native temperature for the refraction models, in degrees Celsius.
|
inlineconstexpr |
The 283 K numerator in the T/P correction factor, derived from 10°C = 273 + 10 K.
|
inlineconstexpr |
Maximum number of iterations for Saemundsson's horizon solve.
|
inlineconstexpr |
Iteration tolerance for Saemundsson's horizon refraction, in degrees.