Virtual Temperature
From the user, an air temperature ,
a dewpoint temperature ,
and a station pressure
are given.
To calculate the virtual temperature, the temperatures must be converted to
units of degrees Celsius
and the station pressure must be converted to units of millibars To
see how to convert these values, see the links below:
pressureConversion.php
tempConvert.php
Then, the virtual temperature
can be calculated using the formula below:
The virtual temperature answer will be in units of Kelvin ,
but virtual temperature can be converted to other units using the link above.
|