powered by
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())
A vector with pressure values (Pa).
A vector with temperature values (K).
A vector with mixing ratio values (kg/kg).
The constants defined in aiRthermoConstants data are necessary.
A vector with density of moist air values is returned (\(kg/m^3\)).
virtual_temperature
# NOT RUN { data(RadiosondeA) aPs<-RadiosondeA[,1]*100 aTs<-C2K(RadiosondeA[,3]) aws<-RadiosondeA[,6]/1000 densityMoistAir(aPs,aTs,aws) # }
Run the code above in your browser using DataLab