aiRthermo (version 1.0)

densityH2Ov: Density of water vapour

Description

From pressure of water vapour Pw (Pa) and temperature Temp (K), this function calculates density of water vapour (\(kg/m^3\))

Usage

densityH2Ov(Pw, Temp, consts = export_constants())

Arguments

Pw

A vector with pressure water vapour values (Pa)

Temp

A vector with temperature values (K)

consts

The constants defined in aiRthermoConstants data are necessary.

Value

A vector with density of water vapour values is returned (\(kg/m^3\))

See Also

q2e and w2q

Examples

Run this code
# NOT RUN {
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
h2oe<-q2e(dPs,w2q(dws))
densityH2Ov(h2oe,dTs)
# }

Run the code above in your browser using DataCamp Workspace