When the sun is either rising or setting and appears to be just in the horizon, it is in fact below the horizon. The explanation for this seeming paradox is that light from the sun bends slightly when entering the earth's atmosphere as shown in figure. Assume that the atmosphere has uniform density and hence uniform index of refraction n and extends to a height h above the earth's surface, at which point is abruptly stop. The angle δ above the Sun's true position is given by