Description Usage Arguments Value See Also Examples
This function calculates the potential temperature from given temperature and pressure.
1 | PT2Theta(P, Temp, w = 0, consts = export_constants())
|
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. |
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.
1 2 3 4 | data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dThetas=PT2Theta(dPs,dTs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.