Function metfor::specific_humidity[][src]

pub fn specific_humidity(dew_point_c: f64, pressure_hpa: f64) -> Result<f64>

Calculate the specific humidity.

Eqs 5.11 and 5.12 from "Weather Analysis" by Dušan Dujrić

  • dew_point_c - the dew point in Celsius, if this is the same as the temperature then this calculates the saturation specific humidity.
  • pressure_hpa - thepressure of the parcel in hPa.

Returns the specific humidity. (no units)