Skip to main content

geometric_from_geopotential_m

Function geometric_from_geopotential_m 

Source
pub fn geometric_from_geopotential_m(
    geopotential_m: f64,
) -> Result<f64, AtmosError>
Expand description

Geometric altitude Z (m) from geopotential altitude H (m′), the inverse of eq. 18: Z = r₀ H / (r₀ − H). H must be below r₀, the geopotential altitude of infinity.

§Errors

AtmosError::Domain if geopotential_m is not finite or not below r₀.