powered by
This function calculates the virtual temperature from given pressure and mixing ratio.
virtual_temperature(P, Temp, w, consts = export_constants())
A vector with pressure values in Pa.
A vector with temperature values in Kelvin.
A vector with mixing ratio values in kg/kg.
The constants defined in aiRthermoConstants data are necessary.
This function returns a vector with virtual temperature values.
q2e
# NOT RUN { data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) dws<-RadiosondeD[,6]/1000 virtual_temperature(dPs,dTs,dws) # }
Run the code above in your browser using DataLab