Function metfor::specific_humidity
source · pub fn specific_humidity<DP, P>(dew_point: DP, pressure: P) -> Option<f64>where
DP: Temperature,
P: Pressure,
Celsius: From<DP>,
HectoPascal: From<P>,
Expand description
Calculate the specific humidity.
Eqs 5.11 and 5.12 from “Weather Analysis” by Dušan Dujrić
dew_point
- the dew point, if this is the same as the temperature then this calculates the saturation specific humidity.pressure
- the pressure in hPa.
Returns the specific humidity. (no units)