densityMoistAir {aiRthermo} | R Documentation |
From pressure P (Pa) temperature Temp (K) and mixing ratio (kg/kg), this function calculates the density of moist air (kg/m^3).
densityMoistAir(P, Temp, w, consts = export_constants())
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. |
A vector with density of moist air values is returned (kg/m^3).
data(RadiosondeA) aPs<-RadiosondeA[,1]*100 aTs<-C2K(RadiosondeA[,3]) aws<-RadiosondeA[,6]/1000 densityMoistAir(aPs,aTs,aws)