q2e: Partial Vapour Pressure

Description Usage Arguments Value Examples

Description

This function calculates the partial vapour pressure from specific humidity.

Usage

1
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

1
2
3
4
5
# Get partial pressure of water vapour
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dws<-RadiosondeD[,6]/1000
h2oe<-q2e(dPs,w2q(dws))

aiRthermo documentation built on May 1, 2019, 9:24 p.m.