Function metfor::mixing_ratio
[−]
[src]
pub fn mixing_ratio(dew_point_c: f64, pressure_hpa: f64) -> Result<f64>
Calculate the mixing ratio of water.
Eq 5.9 from "Weather Analysis" by Dušan Dujrić
dew_point_c
- the dew point of the parcel in Celsius. If you want the saturation mixing ratio, just make this equal to the temperature.pressure_hpa
- the pressure of the parcel in hPa.
Returns: The mixing ratio in kg/kg.