Function metfor::dew_point_from_p_and_mw [−][src]
pub fn dew_point_from_p_and_mw(pressure_hpa: f64, mw: f64) -> Result<f64>
Given a mixing ratio and pressure, calculate the dew point temperature. If saturation is assumed this is also the temperature.
pressure_hpa
- the pressure of the parcel in hPamw
- the mixing ratio in kg/kg.
Returns: The dew point in celsius