pythondef get_EMC(temperature_c, humidity1):
"""
temperature_c unit C
humidity1 unit %
"""
humidity = humidity1 / 100
temperature_f = 32 + (9.0 / 5.0 * temperature_c)
EMC_W = 330 + 0.0452 * temperature_f + 0.00415 * temperature_f
EMC_K = 0.791 + 0.000463 * temperature_f - 0.000000844 * temperature_f * temperature_f
EMC_K1 = 6.34 + 0.000775 * temperature_f - 0.0000935 * temperature_f * temperature_f
EMC_K2 = 1.09 + 0.0284 * temperature_f - 0.0000904 * temperature_f * temperature_f
EMC = 1800 / EMC_W * ((EMC_K * humidity / (1 - EMC_K * humidity)) + (
EMC_K1 * EMC_K * humidity + 2 * EMC_K1 * EMC_K2 * EMC_K * EMC_K * humidity * humidity) / (
1 + EMC_K1 * EMC_K * humidity + EMC_K1 * EMC_K2 * EMC_K * EMC_K * humidity * humidity))
return EMC
本文作者:Dong
本文链接:
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC。本作品采用《知识共享署名-非商业性使用 4.0 国际许可协议》进行许可。您可以在非商业用途下自由转载和修改,但必须注明出处并提供原作者链接。 许可协议。转载请注明出处!