View source: R/calculate_water_volume_mixing_ratio.R
calculate_water_volume_mixing_ratio | R Documentation |
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.
calculate_water_volume_mixing_ratio(temp, rh, pressure, as_percent = FALSE)
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? |
Numeric vector with the units of a ratio or percentage if
as_percent
is TRUE
.
calculate_water_partial_pressure
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.