Skip to contents

Function to calculate the absolute humidity (g/m³) from temperature (°C) and relative humidity (%).

Absolute humidity is the mass of water in a unit volume of air at a given temperature and pressure.

Usage

calcAH(Temp, RH, P_atm = 1013.25)

Arguments

Temp

Temperature (°Celsius)

RH

Relative Humidity (0-100%)

P_atm

Atmospheric pressure = 1013.25 (hPa)

Value

AH Absolute Humidity (g/m³)

References

Buck, A. L. (1981). New equations for computing vapor pressure and enhancement factor. Journal of Applied Meteorology, 20(12), 1527-1532.

Examples

calcAH(20, 50)
#> [1] 8.630534

head(mydata) |> dplyr::mutate(Abs = calcAH(Temp, RH))
#> # A tibble: 6 × 6
#>   Site   Sensor Date                 Temp    RH   Abs
#>   <chr>  <chr>  <dttm>              <dbl> <dbl> <dbl>
#> 1 London Room 1 2024-01-01 00:00:00  21.8  36.8  7.05
#> 2 London Room 1 2024-01-01 00:15:00  21.8  36.7  7.03
#> 3 London Room 1 2024-01-01 00:29:59  21.8  36.6  7.01
#> 4 London Room 1 2024-01-01 00:44:59  21.7  36.6  6.97
#> 5 London Room 1 2024-01-01 00:59:59  21.7  36.5  6.95
#> 6 London Room 1 2024-01-01 01:14:59  21.7  36.2  6.90