densityDry {aiRthermo} | R Documentation |
From pressure P (Pa) and temperature Temp (K), this funtion calculates the density of dry air in kg/m^3.
densityDry(P, Temp, consts = export_constants())
P |
A vector with pressure values (Pa). |
Temp |
A vector with temperature values (K). |
consts |
The constants defined in aiRthermoConstants data are necessary. |
A vector with density of dry air values is returned (kg/m^3).
data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) densityDry(dPs,dTs)