densityMoistAir {aiRthermo}R Documentation

Density of Moist Air

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

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

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

[Package aiRthermo version 1.2.1 Index]