rcatool.utils.atmosphys.sh2rh
- rcatool.utils.atmosphys.sh2rh(sh, T, P=1013.25)[source]
Convert specific humidity to relative humidity Code from: https://github.com/PecanProject/pecan/blob/master/modules/data.atmosphere/R/metutils.R
- Parameters:
sh – Specific humidity in kg/kg
floats (float/array of) – Specific humidity in kg/kg
T – Absolute temperature in Kelvin
floats – Absolute temperature in Kelvin
P – Pressure in hPa (mb)
floats – Pressure in hPa (mb)
- Returns:
Relative humidity in fraction (not percent)
- Return type:
rh,