< p >我想每天计算最小和最大相对湿度值给定一个最小/最大特定的湿度和最小/最大温度。< / p > < p > < a href = " //www.hoelymoley.com/questions/2360/how-do-i-convert-specific-humidity-to-relative-humidity " >我发现一些方程< / >,与给定的变量,但我已经注意到,偶尔值最小相对湿度的计算将大于计算值最大相对湿度。这是准确的吗?感觉不对,特定的湿度和温度较低将会导致更高的相对湿度,也没有说话的权利,例如,最小RH是80%,而最大RH是50%。< / p > < p >我验证< a href = " https://www.rotronic.com/en-us/humidity_measurement-feuchtemessung-mesure_de_l_humidite/humidity-calculator-feuchterechner-mr " rel = " nofollow noreferrer " >我的结果与这个在线计算器< / >,虽然目前还不清楚什么样的方程被使用在这里,同样的情形发生。< / p > < p >这是我计算RH c#函数。特定的湿度作为公斤/公斤,在摄氏温度:< / p > < pre > <代码>公共静态双CalculateRHmin(双MinSpecificHumidity,双MinTemperature){双RHmin = 0.0;双es = 6.112 * Math.Exp ((17.67 * MinTemperature) / (MinTemperature + 243.5));双e = MinSpecificHumidity * 1013.25 / (0.378 * MinSpecificHumidity + 0.622);RHmin = 100 * (e / es);返回RHmin; } public static double CalculateRHmax(double MaxSpecificHumidity, double MaxTemperature) { double RHmax = 0.0; double es = 6.112 * Math.Exp((17.67 * MaxTemperature) / (MaxTemperature + 243.5)); double e = MaxSpecificHumidity * 1013.25 / (0.378 * MaxSpecificHumidity + 0.622); RHmax = 100 * (e / es); return RHmax; } Sample execution:
Tmin(Celsius) = 12.71 SHmin(kg/kg) = 0.007672 RHmin = 84.71%
Tmax(Celsius) = 23.71 SHmax(kg/kg) = 0.010929 RHmax = 60.33%