rcatool.utils.atmosphys.rh2sh
- rcatool.utils.atmosphys.rh2sh(rh, T, P=1013.25)[source]
Convert relative humidity to specific humidity Code from: https://github.com/PecanProject/pecan/blob/master/modules/data.atmosphere/R/metutils.R Equation for sh from standard literature, e.g. K. Emanuel (1994; eq. 4.1.4) Reference: * Emanuel, K. A. (1994): Atmospheric Convection. New York, NY:
Oxford University Press, 580 pp.
- Parameters:
rh – Relative humidity in proportion, not percent
floats (float/array of) – Relative humidity in proportion, not percent
T – Absolute temperature in Kelvin
floats – Absolute temperature in Kelvin
P – Pressure in hPa (mb)
floats – Pressure in hPa (mb)
- Returns:
Specific humidity in kg/kg
- Return type:
sh,