get_local_atmosphere

Function get_local_atmosphere 

Source
pub fn get_local_atmosphere(
    altitude_m: f64,
    base_alt: f64,
    base_temp_c: f64,
    base_press_hpa: f64,
    base_ratio: f64,
) -> (f64, f64)
Expand description

Enhanced local atmospheric calculation with variable lapse rates.

§Arguments

  • altitude_m - Altitude in meters
  • base_alt - Base altitude for calculation
  • base_temp_c - Base temperature in Celsius
  • base_press_hpa - Base pressure in hPa
  • base_ratio - Base density ratio

§Returns

Tuple of (air_density_kg_m3, speed_of_sound_mps)