A real shadow in an imagined courtyard
Only the vertical gnomon’s shadow is calculated. Its bearing is opposite the Sun and its length on a horizontal plane is height divided by tan(solar altitude). The trees, water, stonework and surrounding light form an illustration, not a surveyed building or a complete physical lighting simulation.
The city supplies a place and a clock
Each city uses listed representative coordinates and an IANA time zone. Local time is converted to UTC with historical zone rules. Skipped clock times are rejected; repeated times need an explicit first or second occurrence. Dates are supported from 1901 to 2099, with zone data supplied by the browser.
At the edge of daylight
Astronomy Engine 2.1.19 computes the topocentric geometric Sun centre without atmospheric refraction. At or below zero altitude, the scene shows night and no solar shadow. Below 3° the near-horizon warning appears; long shadows are visually clipped to the courtyard while the numerical length remains visible. Terrain, weather and refraction can change what you see outdoors.
Sources & further checking
Questions before you start
How is shadow length calculated from solar altitude and object height?
For a vertical gnomon on a horizontal plane, length equals gnomon height divided by the tangent of solar altitude. Its bearing is opposite the Sun. The selected city, date and local time determine the solar position; the surrounding courtyard remains an illustration rather than a surveyed site.
Why is no solar shadow drawn when the Sun is below the horizon?
At or below zero geometric solar-centre altitude, the tool shows a night scene without the gnomon’s solar shadow. It does not simulate moonlight, artificial lighting or terrain shadows. That declared geometry is separate from a complete assessment of real-world visibility at the location.
Does a shadow clipped by the picture boundary mean the length is wrong?
Not necessarily. A low Sun can produce a calculated shadow longer than the illustrated courtyard. The drawing is clipped while the numerical length remains available. A warning appears below 3 degrees; terrain, weather and atmospheric refraction can also affect what you observe outside.
Does the city-time input handle a repeated daylight-saving clock hour?
Yes. Local time is resolved with the selected city’s representative coordinates and IANA zone. Skipped times are rejected and repeated times need an explicit occurrence choice. Historical zone rules come from the browser. The solar calculation uses the geometric centre without atmospheric refraction.