Expressions are developed within the three–dimensional model of the inhomogeneous atmosphere to calculate both the vertical and the lateral astronomic refraction. These describe refraction anomalies as functions of the zenith and azimuth angles, as well as the atmospheric parameters at the observation point.