densityH2Ov: Density of water vapour

Description Usage Arguments Value See Also Examples

Description

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

Usage

1
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

1
2
3
4
5
6
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
h2oe<-q2e(dPs,w2q(dws))
densityH2Ov(h2oe,dTs)

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