def gueymard94_pw(temp_air, relative_humidity):
T = temp_air + <NUM_LIT>  <EOL>RH = relative_humidity                                      <EOL>theta = T / <NUM_LIT><EOL>pw = (<EOL><NUM_LIT:0.1> *<EOL>(<NUM_LIT> + <NUM_LIT>*theta + np.exp(<NUM_LIT>*theta - <NUM_LIT>*(theta)**<NUM_LIT:3>)) *<EOL>(<NUM_LIT>*RH/(<NUM_LIT:100>*T)*np.exp(<NUM_LIT> - <NUM_LIT>*(<NUM_LIT:100>/T) -<EOL><NUM_LIT>*(<NUM_LIT:100>/T)**<NUM_LIT:2> - <NUM_LIT>*T/<NUM_LIT:100>)))<EOL>pw = np.maximum(pw, <NUM_LIT:0.1>)<EOL>return pw<EOL>
r"""
    Calculates precipitable water (cm) from ambient air temperature (C)
    and relatively humidity (%) using an empirical model. The
    accuracy of this method is approximately 20% for moderate PW (1-3
    cm) and less accurate otherwise.

    The model was developed by expanding Eq. 1 in [2]_:

    .. math::

           w = 0.1 H_v \rho_v

    using Eq. 2 in [2]_

    .. math::

           \rho_v = 216.7 R_H e_s /T

    :math:`H_v` is the apparant water vapor scale height (km). The
    expression for :math:`H_v` is Eq. 4 in [2]_:

    .. math::

           H_v = 0.4976 + 1.5265*T/273.15 + \exp(13.6897*T/273.15 - 14.9188*(T/273.15)^3)

    :math:`\rho_v` is the surface water vapor density (g/m^3). In the
    expression :math:`\rho_v`, :math:`e_s` is the saturation water vapor
    pressure (millibar). The
    expression for :math:`e_s` is Eq. 1 in [3]_

    .. math::

          e_s = \exp(22.330 - 49.140*(100/T) - 10.922*(100/T)^2 - 0.39015*T/100)

    Parameters
    ----------
    temp_air : numeric
        ambient air temperature at the surface (C)
    relative_humidity : numeric
        relative humidity at the surface (%)

    Returns
    -------
    pw : numeric
        precipitable water (cm)

    References
    ----------
    .. [1] W. M. Keogh and A. W. Blakers, Accurate Measurement, Using Natural
       Sunlight, of Silicon Solar Cells, Prog. in Photovoltaics: Res.
       and Appl. 2004, vol 12, pp. 1-19 (:doi:`10.1002/pip.517`)

    .. [2] C. Gueymard, Analysis of Monthly Average Atmospheric Precipitable
       Water and Turbidity in Canada and Northern United States,
       Solar Energy vol 53(1), pp. 57-71, 1994.

    .. [3] C. Gueymard, Assessment of the Accuracy and Computing Speed of
       simplified saturation vapor equations using a new reference
       dataset, J. of Applied Meteorology 1993, vol. 32(7), pp.
       1294-1300.