PTheta2T {aiRthermo} | R Documentation |
Temperature from pressure and potential temperature
Description
This function calculates the temperature from a given pressure and potential temperature.
Usage
PTheta2T(P, Theta, w = 0, consts = export_constants())
Arguments
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. |
Value
This function returns a vector with temperatures (K).
See Also
Examples
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dThetas=PT2Theta(dPs,dTs)
PTheta2T(dPs,dThetas)
[Package aiRthermo version 1.2.1 Index]