relative_humidity_from_specific_humidity#

metpy.calc.relative_humidity_from_specific_humidity(pressure, temperature, specific_humidity)#

Calculate the relative humidity from specific humidity, temperature, and pressure.

Parameters
Returns

pint.Quantity – Relative humidity

Examples

>>> from metpy.calc import relative_humidity_from_specific_humidity
>>> from metpy.units import units
>>> relative_humidity_from_specific_humidity(1013.25 * units.hPa,
...                                          30 * units.degC, 18/1000).to('percent')
<Quantity(67.3893629, 'percent')>

Notes

Formula based on that from [Hobbs1977] pg. 74. and [Salby1996] pg. 118.

\[RH = \frac{q}{(1-q)w_s}\]
  • \(RH\) is relative humidity as a unitless ratio

  • \(q\) is specific humidity

  • \(w_s\) is the saturation mixing ratio

Changed in version 1.0: Changed signature from (specific_humidity, temperature, pressure)

Examples using metpy.calc.relative_humidity_from_specific_humidity#

Cross Section Analysis

Cross Section Analysis

Cross Section Analysis
Isentropic Analysis

Isentropic Analysis

Isentropic Analysis