## 1. Introduction

To calculate relative humidity in percent (hereinafter denoted as RH%) from dry-bulb temperature *T* and wet-bulb temperature *T _{w}*, one can use a well-known set of “forward” analytical psychrometric equations (Bohren and Albrecht 1998; Stull 2011). For any pressure, such as standard sea level pressure of 101.325 kPa, the resulting calculated values of RH% can be listed in psychrometric tables or plotted in graphs such as Fig. 1. There is, however, no easy analytical “inverse” solution to get

*T*from

_{w}*T*and RH%.

Yet some applications require estimates of *T _{w}*, given electronic sensor measurements or numerical forecasts of

*T*and RH%. For example, the “wet-bulb globe temperature” is used by industrial hygienists, athletes, and the military to estimate the composite effect of temperature, solar radiation, humidity, and wind speed on people (see, e.g., online at http://en.wikipedia.org/wiki/Wet_Bulb_Globe_Temperature). The effectiveness of snowmaking equipment is a strong function of

*T*, because snow can be produced in air temperatures slightly above freezing if

_{w}*T*is below about −2°C (see, e.g., online at http://en.wikipedia.org/wiki/Snowmaking). In a similar way, subzero

_{w}*T*values can exacerbate freezing-rain events. Lower

_{w}*T*allows industrial cooling towers and other evaporative coolers (also called swamp coolers or desert coolers) to operate more efficiently (see http://en.wikipedia.org/wiki/Wet-bulb_temperature; http://en.wikipedia.org/wiki/Evaporative_cooler). Wet-bulb temperature

_{w}*T*and wet-bulb potential temperature can be used to label saturated adiabats on thermodynamic diagrams such as skew

_{w}*T*s and tephigrams (Stull 2011). In a similar way, sometimes it is desirable to estimate

*T*without using Normand’s rule (Stull 2011) on a thermodynamic diagram.

_{w}## 2. Empirical expression for wet-bulb temperature

*T*(°C) as a function of

_{w}*T*(°C) and RH% (where a humidity such as 65.8% is input as the number 65.8):

*T*as an explicit function of

_{w}*T*and RH%. Equation (1) is valid for a pressure of 101.325 kPa and for the combinations of dry-bulb temperatures and relative humidities as plotted in Fig. 2. Saturation is with respect to liquid water over all temperatures.

*T*(°C) = 20 and RH% = 50 into Eq. (1) gives

*T*values from Fig. 1 are plotted in Fig. 3. Mean error is −0.0052°C, median error is 0.026°C, mean absolute error is 0.28°C, and the fraction of variance (

_{w}*r*

^{2}) explained by the regression is 99.95%.

Figures 2 and 3 are plotted on the same scale so that at any point (*T*, RH%) one can find *T _{w}* from Fig. 2 and the corresponding error from Fig. 3. Two factors influence the errors in Fig. 3. One is that the regression was based only on the data from Fig. 1, for 1% ≤ RH% ≤ 99%. Thus, the region of cold temperatures and low relative humidities in the lower-right corner of Fig. 1, for which no data are provided, corresponds to the region in the lower-left corner of Fig. 3, for which the regression does not apply. The valid region from Fig. 3 is outlined with the dashed line in Fig. 2. The second factor is that the regression is highly nonlinear and is not based on physical principles. Thus, the

*T*errors have multiple relative maxima and minima of order from −1.0° to +0.6°C, with larger errors generally near the edges of the valid domain. Outside the valid region plotted in Figs. 2 and 3,

_{w}*T*from the regression equation can quickly diverge from reality.

_{w}## 3. Regression method

Gene-expression programming (GEP) was the method used to find a best-fit function to the data. GEP (Ferreira 2006) is an efficient variant of genetic programming, in which candidate functions evolve through various forms of mutation and compete by a computational natural selection until the fittest candidate (with the lowest verification error) is found. Details of GEP for meteorological applications are presented by Bakhshaii and Stull (2009) and Roebber (2010). GEP can explore a wide range of the function space to find a best fit and can yield a nonlinear result [such as Eq. (1)] that would not necessarily have been obvious if the function fit had been attempted manually.

The input data for this regression were only *T _{w}*,

*T*, and RH% for standard sea level pressure of 101.325 kPa. Pressure was not used as one of the predictor variables, and hence the resulting regression does not vary with pressure. Also, because the regression equation is only a statistical fit and is not based on physical principles, one cannot assume that it would be valid at other pressures. If one wanted to apply Eq. (1) to other pressures, however, how much error can one expect? The error is indicated in Fig. 2 by the difference between the thick black curve [from Eq. (1)] and the light-gray curves as found from traditional forward calculations.

As an alternative, the reader can use GEP to create new regressions based on *T _{w}*,

*T*, and RH% data for any other pressure of interest. Given the quasi-random nature of evolution, it is unlikely that the resulting equations would look like Eq. (1). Namely, both the functional form and the numerical coefficients would likely be considerably different.

## Acknowledgments

I am grateful to Atoossa Bakhshaii who helped with the graphics. This research was supported with a grant from the Canadian Natural Sciences and Engineering Research Council.

## REFERENCES

Bakhshaii, A., and R. Stull, 2009: Deterministic ensemble forecasts using gene-expression programming.

,*Wea. Forecasting***24**, 1431–1451.Bohren, C. F., and B. A. Albrecht, 1998:

*Atmospheric Thermodynamics*. Oxford University Press, 402 pp.Ferreira, C., 2006:

*Gene Expression Programming: Mathematical Modeling by an Artificial Intelligence*. 2nd ed. Springer, 478 pp.Roebber, P. J., 2010: Seeking consensus: A new approach.

,*Mon. Wea. Rev.***138**, 4402–4415.Stull, R., 2011:

*Meteorology for Scientists and Engineers*. 3rd ed. Discount Textbooks, 924 pp. [Available online at http://www.eos.ubc.ca/courses/atsc201/MSE3.html.]