wetbulbT | R Documentation |
Calculates the wet-bulb temperature given the pressure, temperature, and dewpoint.
wetbulbT(P, AT, DPT)
P |
A numeric representing ambient pressure in hPa |
AT |
A numeric representing air temperature in deg. C |
DP |
A numeric representing dewpoint temperature in deg. C. |
An interative solution is used, as described here: https://rpubs.com/cooperwilliama/797335 If the known quantities are pressure, temperature, and vapor pressure you can use DPfromE() to find the dewpoint. The input parameters may be vectors, all of the same size, and in that case the result will also be a vector. Be aware, however, that large vectors (like whole flights even at 1 Hz) are likely to give an error resulting from the attempt by nleqslv to allocate too much memory.
A numeric representing the wet-bulb temperature in deg. C
William Cooper
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.