densityMoistAir: Density of Moist Air

Description Usage Arguments Value See Also Examples

Description

From pressure P (Pa) temperature Temp (K) and mixing ratio (kg/kg), this function calculates the density of moist air (kg/m^3).

Usage

1
densityMoistAir(P, Temp, w, consts = export_constants())

Arguments

P

A vector with pressure values (Pa).

Temp

A vector with temperature values (K).

w

A vector with mixing ratio values (kg/kg).

consts

The constants defined in aiRthermoConstants data are necessary.

Value

A vector with density of moist air values is returned (kg/m^3).

See Also

virtual_temperature

Examples

1
2
3
4
5
data(RadiosondeA)
aPs<-RadiosondeA[,1]*100
aTs<-C2K(RadiosondeA[,3])
aws<-RadiosondeA[,6]/1000
densityMoistAir(aPs,aTs,aws)

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