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())
A vector with pressure values (Pa).
A vector with temperature values (K).
The constants defined in aiRthermoConstants data are necessary.
A vector with density of dry air values is returned (\(kg/m^3\)).
# NOT RUN { data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) densityDry(dPs,dTs) # }
Run the code above in your browser using DataLab