q2e {aiRthermo} | R Documentation |
Partial Vapour Pressure
Description
This function calculates the partial vapour pressure from specific humidity.
Usage
q2e(P, q, consts = export_constants())
Arguments
P |
A vector with pressure values (Pa). |
q |
A vector with specific humidity values (kg/kg). |
consts |
The constants defined in aiRthermoConstants data are necessary. |
Value
This function returns the value of the partial vapour pressure (Pa).
Examples
# Get partial pressure of water vapour
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dws<-RadiosondeD[,6]/1000
h2oe<-q2e(dPs,w2q(dws))
[Package aiRthermo version 1.2.1 Index]