Page 1 of 1

Calculating absolut humidity with virtual sensors

Posted: Sun Jan 16, 2011 1:14 am
by gznw
Hi,
well I was pleased to post my results in calculating absolut humidity by use of a virtual sensor. I need this information because I want to check if the amount of water decreases or increases. By analysing only relativ humidity this is not possible.
It was a little bit hard to create formula for awk because there are some special things to take care of while using awk. This formular works and returns the absolut humidity in g/m³.

awk '{ printf ''%d'',1323.48 * $4 / (($3 / 10) - - 273.15) * exp ( (17.269 * $3 / 10) / (237.3 - - ($3 / 10)) ) }'

The basic formula you can find here:
http://www.wettermail.de/wetter/feuchte.html
thank you to the author!

I will have to test how good the calculated results will be, but for now it seems to be good enough!
Bye, gznw