Air Density, Vapor Pressure and I'm Confused

Gary - is it possible your input data is incorrect ?

P = 823.4;   # mbar ?
T = 14.1;    # air temp degC
Dp = 5.5;    # dewpoint degC
H = 56;      # pct relative humidity

H = ( Dp / T ) * 100.0 according to the weather.gov link that the WF page points to, so using the temperatures above H should be 39 in your input data.

Incidentally, your code translates really trivially to python, FWIW. Cool.

1 Like