densityH2Ov {aiRthermo}R Documentation

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

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

[Package aiRthermo version 1.2.1 Index]