qa2ea: Converts specific humidity to vapour pressure.

View source: R/qa2ea.R

qa2eaR Documentation

Converts specific humidity to vapour pressure.

Description

Converts specific humidity to vapour pressure.

Usage

qa2ea(qair, psurf)

Arguments

qair

Required. Specific humidity (dimensionless).

psurf

Required. Surface air pressure in Pa.

Value

If successful, returns the vapour pressure in kPa. If unsuccessful, returns the value FALSE.

Author(s)

Kevin Shook

References

R code for conversion of air pressure and absolute humidity was taken from project PEcAn The Predictive Ecosystem Analyzer http://pecanproject.github.io. The source code is available at https://github.com/PecanProject/pecan/blob/master/modules/data.atmosphere/R/metutils.R.

Examples

ea <- qa2ea(0.001, 101325)

CentreForHydrology/Reanalysis documentation built on Nov. 23, 2022, 2:57 a.m.