-
-
Save ivanzvonkov/af55cdb3704e6d8af0f42fe7500dc752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def calculate_abs_humidity(temperature, relative_humidity): | |
""" Calculates absolute humidity from temperature and relative humidity """ | |
t = temperature | |
rh = relative_humidity | |
abs_humidity = (6.112 * math.exp((17.67*t)/(t+243.5)) * rh * 2.1674)/(273.15+t) | |
return abs_humidity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment