Description Usage Arguments Value See Also Examples
From pressure P (Pa) temperature Temp (K) and mixing ratio (kg/kg), this function calculates the density of moist air (kg/m^3).
1 | 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).
1 2 3 4 5 | data(RadiosondeA)
aPs<-RadiosondeA[,1]*100
aTs<-C2K(RadiosondeA[,3])
aws<-RadiosondeA[,6]/1000
densityMoistAir(aPs,aTs,aws)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.