Atmospheric refraction is the deviation of light or other electromagnetic wave from a straight line as it passes through the atmosphere due to the variation in air density as a function of height.[1] This refraction is due to the velocity of light through air, decreasing (the refractive index increases) with increased density. Atmospheric refraction near the ground produces mirages and can make distant objects appear to shimmer or ripple, elevated or lowered, stretched or shortened, with no mirage involved. The term also applies to the refraction of sound. Atmospheric refraction is considered in measuring the position of both astronomical and terrestrial objects.
Astronomical or celestial refraction causes astronomical objects to appear higher in the sky than they are in reality. Terrestrial refraction usually causes terrestrial objects to appear higher than they actually are, although in the afternoon when the air near the ground is heated, the rays can curve upward making objects appear lower than they really are.