[Solved] What is the calculation for absoulute humidity?
Hello. I'm sorry, I doesn't really understand you question. Could you explain me what you're looking for?
You want to know the formulae used by Weather Station, is that correct?
If so, here it is for partial absolute humidity:
pAH = 0.622 * pVap / (p - pVap)
where pVap is the partial vapor pressure
and for saturation absolute humidity:
sAH = 0.622 * sVap / (p - sVap)
where sVap is the saturation vapor pressure
Note: you can check all the formulas used in /live-weather-station/includes/traits/CommonUtilities.php
Because it includes the computation of vapor pressure. In Weather Station, the 2 computations are done separately.
Unfortunately it will be different because its formula is wrong. You can not compute absolute humidity in g/m³ if you don't involve the air density. To compute air density, you must use current atmospheric pressure. The computation you point out doesn't use pressure and, so, can not be in g/m³...
Ah, yes, you're right, I did not see that. 😇
The vapor pressure is in the formula, not the atmospheric pressure (the pressure measured at the station level)...