PT2Theta {aiRthermo} | R Documentation |
Potential Temperature from pressure and temperature
Description
This function calculates the potential temperature from given temperature and pressure.
Usage
PT2Theta(P, Temp, w = 0, consts = export_constants())
Arguments
P |
A vector with pressure values (Pa). |
Temp |
A vector with temperature values (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 potencial temperature. Mixing ratio is only used to correct the value of c_p
, not to calculate a moist adiabatic evolution.
See Also
Examples
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dThetas=PT2Theta(dPs,dTs)
[Package aiRthermo version 1.2.1 Index]