q2e {aiRthermo} | R Documentation |
This function calculates the partial vapour pressure from specific humidity.
q2e(P, q, consts = export_constants())
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. |
This function returns the value of the partial vapour pressure (Pa).
# Get partial pressure of water vapour data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dws<-RadiosondeD[,6]/1000 h2oe<-q2e(dPs,w2q(dws))