calculate_vapour_pressure: Function to calculate atmospheric vapour pressure.

View source: R/calculate_vapour_pressure.R

calculate_vapour_pressureR Documentation

Function to calculate atmospheric vapour pressure.

Description

Water vapour pressure is the atmospheric pressure which is exerted by water vapour (gaseous water).

Usage

calculate_vapour_pressure(temp, type = 1L)

Arguments

temp

Air temperature or dew point temperature in degrees Celsius.

type

What type of vapour pressure should be calculated? Type 1 is the package's original version and type 2 is Bolton 1980's version often used with dew point temperatures.

Value

Numeric vector, vapour pressure in hectopascals (hPa).

Author(s)

Stuart K. Grange

Examples


# Calculate saturated vapour pressure with air temperature
calculate_vapour_pressure(20)

# Use Bolton 1980's formula
calculate_vapour_pressure(20, type = 2)

# Calculate actual vapour pressure with dew point temperature
calculate_vapour_pressure(calculate_dew_point(temp = 20, rh = 65))
calculate_vapour_pressure(calculate_dew_point(temp = 20, rh = 65), type = 2)


skgrange/threadr documentation built on April 15, 2024, 9:35 p.m.