varwg.meteo.meteox2y.spec_hum

varwg.meteo.meteox2y.spec_hum(e, p)[source]

Calculates the specific humidity

Parameters:
pressurefloat

air pressure in hPa

efloat

vapour pressure in hPa

Returns:
spec_humfloat

Notes

The formula is: s = ((0.623*e)/(p-0.377*e))*1000 where M_w/M_tL=0.622 and 0.378 = 1-0.622