calculate_water_volume_mixing_ratio: Function to calculate the mixing ratio of water.

View source: R/calculate_water_volume_mixing_ratio.R

calculate_water_volume_mixing_ratioR Documentation

Function to calculate the mixing ratio of water.

Description

calculate_water_volume_mixing_ratio uses the August-Roche-Magnus equation to calculate the partial pressure of air and this is divided by air pressure to calculate the mixing ratio of water in dry air.

Usage

calculate_water_volume_mixing_ratio(temp, rh, pressure, as_percent = FALSE)

Arguments

temp

Temperature in degrees Celsius – usually air temperature.

rh

Relative humidity in percent.

pressure

Pressure (usually air pressure) in the units of hectopascal/millibar.

as_percent

Should the units used for the return be percentage rather than a ratio?

Value

Numeric vector with the units of a ratio or percentage if as_percent is TRUE.

See Also

calculate_water_partial_pressure

Examples


# Calculate the mixing ratio of water from some observations in Zürich, at an
# elevation of ~ 430 m, therefore air pressure is relatively low
calculate_water_volume_mixing_ratio(13.3, 92.5, 976.5)

# Or as a percent
 calculate_water_volume_mixing_ratio(13.3, 92.5, 976.5, as_percent = TRUE)



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