Why We Have Seasons: Earth's Tilt and the Sun, in 3D
Earth's axis is tilted by about 23.4° to its orbit. As Earth goes round the Sun, first one hemisphere and then the other leans towards it: its days grow long and its noon Sun climbs high. That, and not Earth's distance from the Sun, is what makes the seasons.
Often said, but not quite right
Often said: It is summer when Earth is closest to the Sun.
In fact: Earth is closest to the Sun in early January, when it is winter in the north and summer in the south: the two hemispheres have opposite seasons at the same distance. The seasons come from the tilt of Earth's axis.
How this simulator works
The Sun's direction and Earth's axis at the clock's moment come from the ephemeris (astronomy-engine, with the IAU 2006 precession and the IAU 2000B nutation), checked against NASA JPL's Horizons; its equinoxes and solstices are within two minutes of the US Naval Observatory's times.
A day's length runs from sunrise to sunset of the Sun's upper edge, with the standard allowance for the air's bending of sunlight (the Sun's centre 0.833° below the horizon), computed for each day of the year from the Sun's position, at the latitude chosen.
Earth's distance from the Sun is computed for each day from the same ephemeris, and its closest and farthest days are found by searching it.
Simplified, and said so: the tilt of 0° is a counterfactual, not the real Earth; and far from today (before 1500 or after 2500) Earth's axis is approximate.
Sources
- astronomy-engine 2.1.19, © Don Cross, MIT licence: the Sun's place, Earth's axis (IAU 2006/2000B), the equinoxes, the solstices and Earth's closest and farthest days, checked against NASA/JPL Horizons
- Earth's Seasons and Apsides, U.S. Naval Observatory (the times the ephemeris is held to; sunrise and sunset at −0.833°)
- Earth Fact Sheet, NASA NSSDC (the tilt of Earth's axis, 23.44°)
- What Causes the Seasons?, NASA Space Place (the misconception)