PTheta2T {aiRthermo} | R Documentation |
This function calculates the temperature from a given pressure and potential temperature.
PTheta2T(P, Theta, w = 0, consts = export_constants())
P |
A vector with pressure values (Pa). |
Theta |
A vector with potential temperature (K). |
w |
A vector with mixing ratio values (kg/kg). Default value 0. |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with temperatures (K).
data(RadiosondeD) dPs<-RadiosondeD[,1]*100 dTs<-C2K(RadiosondeD[,3]) dThetas=PT2Theta(dPs,dTs) PTheta2T(dPs,dThetas)