Shadow Calculator

The exposed length is measured along a straight gnomon from its planted base to its tip. Pointed altitude is above the horizontal ground plane; 90° is vertical. Alignment and shadow bearing are clockwise from true north. Coordinates use WGS84 geodetic latitude, east-positive longitude and ellipsoidal height.

Ray intersection

For length L, gnomon altitude t and alignment a, the tip’s east, north and up components are (L cos(t) sin(a), L cos(t) cos(a), L sin(t)). Let the Sun’s altitude be h and azimuth be A. For h above zero, the tip shadow is E = L cos(t) sin(a) − L sin(t) cot(h) sin(A), N = L cos(t) cos(a) − L sin(t) cot(h) cos(A). Shadow length is √(E² + N²), from the planted base. Its bearing is atan2(E,N), normalized to 0°–360°.

Below the selected solar-centre horizon there is no modelled shadow. At exactly zero altitude the ray is parallel to the plane, so no finite intersection exists. A zero-length shadow has no direction. For a vertical rod, length becomes L / tan(h), and the shadow points opposite the solar azimuth. Alignment has no effect when the gnomon is vertical.

Solar position and time

The calculator reuses Canopy Archaeoastronomy’s solar position from Stellarium 24.1 reference profile, with an explicit WGS84 topocentric observer. Dates use the proleptic Gregorian calendar and Universal Time with model-derived TT; civil years have BC/AD and no year zero. Geometric mode excludes atmospheric refraction. Apparent mode uses the shared weather-scaled Saemundsson correction, using the solar centre in both cases.

Interpretation

The ground is horizontal and unbounded. The rod is thin and straight, and sunlight follows parallel solar-centre rays. Terrain, Earth curvature across long shadows, obstacles, thickness and the solar disc’s penumbra are omitted. Near the horizon, small altitude and atmospheric errors cause large shadow differences. Ancient and distant future clock times have increasing Earth-rotation and ephemeris uncertainty. Results outside AD 1600–2200 are exploratory. Five-place decimal truncation is a display convention, not an accuracy guarantee.

Sources

The shadow projection and seven calculator icons are independently authored for Canopy Archaeoastronomy.