You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R Implementation:
The calculation uses the dew point temperature (calcDewp) as an intermediate step.This approach is based on the Clausius-Clapeyron equation, leveraging the dew point to determine vapor pressure before calculating the Humidex.
Python Implementation:
The calculation skips the dew point temperature and directly computes the saturated vapor pressure using Tetens’ formula.
It simplifies the process by directly using the dry bulb temperature and relative humidity to calculate vapor pressure. @FedericoTartarini and Marcel to review
The text was updated successfully, but these errors were encountered:
Mine was implemented by a colleague from Karlsruhe. He used Masterton and Richarddson (1979)
So, we have two options to proceed:
a) add the other version to each package to have two versions each and clarify which is which by giving them unique names.
b) change R to be in line with py as you used a more up-to-date version
I am fine with both and lean towards b.
As you proposed in option a) we can keep both equations. In python, I will add an input to the humidex function similar to what I did for the PMV model pythermalcomfort.models.pmv.pmv(tdb, tr, vr, rh, met, clo, wme=0, standard='ISO', units='SI', limit_inputs=True, airspeed_control=True)
In this case I will call it model and by defalt will be set to "rana" the other option will be "masterton". In the documentation I will also provide additional informations about the models.
Describe the bug
Here are the differences we have identified:
humidity
In py the calculation is link
hi = tdb + 5 / 9 * ((6.112 * 10 ** (7.5 * tdb / (237.7 + tdb)) * rh / 100) - 10)
In R the calculation is link
ta+5/9*(6.11*exp(5417.753*(1/273.15-1/(calcDewp(ta, rh)+273.15)))-10)
R Implementation:
The calculation uses the dew point temperature (calcDewp) as an intermediate step.This approach is based on the Clausius-Clapeyron equation, leveraging the dew point to determine vapor pressure before calculating the Humidex.
Python Implementation:
The calculation skips the dew point temperature and directly computes the saturated vapor pressure using Tetens’ formula.
It simplifies the process by directly using the dry bulb temperature and relative humidity to calculate vapor pressure.
@FedericoTartarini and Marcel to review
The text was updated successfully, but these errors were encountered: