virtual_temperature | R Documentation |
This function calculates the virtual temperature from given pressure and mixing ratio.
virtual_temperature(P, Temp, w, consts = export_constants())
P |
A vector with pressure values in Pa. |
Temp |
A vector with temperature values in Kelvin. |
w |
A vector with mixing ratio values in kg/kg. |
consts |
The constants defined in aiRthermoConstants data are necessary. |
This function returns a vector with virtual temperature values.
q2e
data(RadiosondeD)
dPs<-RadiosondeD[,1]*100
dTs<-C2K(RadiosondeD[,3])
dws<-RadiosondeD[,6]/1000
virtual_temperature(dPs,dTs,dws)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.