Humidity 0.1.1-SNAPSHOT
Released under the GPL-2.0-or-later
Functions to compute relative humidity, absolute humidity, wet bulb temperature, and other values related to humidity of air, given partial data.
Installation
To install, add the following dependency to your project or build file:
[humidity "0.1.1-SNAPSHOT"]
Topics
Namespaces
humidity.absolute-humidity
Function to calculate absolute humidity in grammes per metre3 given temperature in ° K, saturation vapour pressure in Pascals, and relative humidity as a percentage (0…100).
Public variables and functions:
humidity.dew-point-celsius
Function to compute the dew point, in ° Celsius, given temperature in ° Celsius and relative humidity percentage.
Public variables and functions:
humidity.saturation-vapour-pressure
Saturation vapour pressure function
Public variables and functions:
humidity.utils
Utility functions for humidity calculation
humidity.volume
In computing the relative humidity of air after it has warmed, I need to account for the change in volume. By Charles’ Law, given stable pressure, volume is proportional to absolute temperature (i.e. V=Tk, where K is a constant). However, the sources I have read do not give that constant, for air. But seeing what I’m interested in is that amount of air which is contained in a cubic metre at standard temperature and pressure, then I think I can just take (temperature-kelvin/celsius-offset) as the temperature component.
Public variables and functions:
humidity.wet-bulb-temperature-celsius
Function to calculate wet bulb temperature (in ° C) given temperature in ° C and relative-humidity percentage (0…100)
Public variables and functions: