Warm near-surface air has a slightly lower refractive index. Grazing light rays can bend upwards, causing distant scenery to appear lower.
Air's refractive index depends on its density. Hot air directly above heated ground is generally less dense than cooler air above it. A light ray travelling almost horizontally can curve towards the higher-index air, producing an inferior mirage. A cold surface with warmer air higher up can produce the opposite, superior, displacement.
The simulator numerically integrates these rays, adjusts the initial angle until the ray reaches the chosen marker and compares it with the straight sightline. It assumes a flat surface, horizontally uniform temperature layers, constant pressure and no absorption; it is not a calibrated prediction or a reconstruction of a measured Botswana mirage. Air temperature (27°C), optical coefficient and all station geometry are teaching assumptions.
Use Follow sun for a stylised diurnal thermal programme. Turn it off by changing the contrast manually. Time lapse animates the programme. Shift and drag to pan; mouse or touch drag to orbit; scroll or pinch to zoom. Click a 3D object to inspect it.
Learn more: WMO International Cloud Atlas ↗ · NASA Earth Observatory ↗ · Botswana Tourism ↗