get_local_atmosphere_humid

Function get_local_atmosphere_humid 

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

Humidity-aware companion to get_local_atmosphere: identical local density, but the speed of sound is the moist-air value (moist_speed_of_sound) evaluated at the LOCAL temperature and pressure.

get_local_atmosphere is intentionally left unchanged (dry speed of sound) for API/back-compat; call this variant only where a real relative humidity is available.

§Arguments

  • altitude_m - Query geometric altitude above mean sea level in meters
  • base_alt - Base (station) geometric altitude above mean sea level in meters
  • base_temp_c - Base temperature in Celsius
  • base_press_hpa - Base pressure in hPa
  • base_ratio - Base density ratio (density / 1.225)
  • humidity_percent - Relative humidity percentage (0-100)

§Returns

Tuple of (air_density_kg_m3, moist_speed_of_sound_mps)