powered by
This function calculates the temperature from a given pressure and potential temperature.
PTheta2T(P, Theta, w = 0, consts = export_constants())
A vector with pressure values (Pa).
A vector with potential temperature (K).
A vector with mixing ratio values (kg/kg). Default value 0.
The constants defined in aiRthermoConstants data are necessary.
This function returns a vector with temperatures (K).
moistCp
# NOT RUN { data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) dThetas=PT2Theta(dPs,dTs) PTheta2T(dPs,dThetas) # }
Run the code above in your browser using DataLab