← Help

Sun & shadow

Sun & shadow is the third mode of the simulator, beside LOS and RF. It shows when the sun clears the terrain at a point, which ground lies in shadow at a chosen time, and how many hours of direct sun every spot gets over a period. Everything is computed in your browser from the terrain, with buildings and trees if you tick them.

The control panel in Sun & shadow mode with the Day section, the Sun at observer chart and the Sun hours section
Day on top, the Sun at observer chart in the middle, the Sun hours period below.

How do I use the sun mode?

  1. At the top of the panel, choose “Sun & shadow”, the third button beside “LOS / Viewshed” and “RF Propagation”.
  2. Place the observer. Click “Pick” and then the map, click the map directly, or search for a place. The sun mode works with one observer and has no height fields.
  3. Under “Day”, pick the day: ◀ ▶ step one day, the chips jump to today or to 21 March, June, September or December, and the date field takes any date.
  4. Read the “Sun at observer” chart. It needs no run and shows the terrain horizon, the sun’s path on that day and the times of direct sun.
  5. Set “Range” and “Resolution” under “Coverage”, tick buildings or trees if they should cast shadows, and press “Run Simulation”.
  6. Drag the timeline under the map, or press play, to move the shadow through the day. A new day redraws the shadow without a new run.
  7. Switch the legend from “Shadow” to “Sun hours” to see the hours of direct sun over the period set under “Sun hours”.
  8. Click or tap a point for its values, and export the result as PNG, KMZ or GeoTIFF.

How do I read the Sun at observer chart?

Across the chart runs the compass direction, centred on the noon sun, and up the side the angle above the horizontal. The grey silhouette is the terrain horizon around the observer, computed in 720 directions out to 50 km. The solid curve is the sun’s path on the chosen day, with a dot for every full hour, filled while the sun is in view. The dashed curves are 21 March and 21 June for reference. Where the path runs above the silhouette, the observer has direct sun.

The line under the chart turns that into times, for Lauterbrunnen village on 21 December “Direct sun 11:45–13:11”, together with how long the direct sun lasts and the span of daylight. On a summit the horizon can lie below 0°, and the chart then extends below the horizontal line. Times are in the observer’s own time zone, daylight saving included. The zone is named under the day, and if it cannot be found the panel says it uses your browser’s time zone.

How does the timeline work?

After a run, a timeline appears below the map with the day at its left. Drag the handle, use the arrow keys (10 minutes a press, an hour with Shift), or press play to run through the day. The map redraws the shadow for every minute you land on. A yellow band marks the observer’s hours of direct sun.

The sun timeline under the map with the day, the play button, the hour ticks and the yellow direct-sun band
Scrub or play the day. The yellow band is direct sun at the observer.

The track covers every moment the sun can reach some point of the area. On a summit that means before astronomical sunrise and after sunset, because a high point sees the sun below the mathematical horizon. The timeline hides while the sun-hours map is shown or a measuring card is open.

How are sun hours counted?

Under “Sun hours” you set the period, the whole year by default and at most 366 days. The chips choose “Whole year”, “This month” or “Same day as above”. Tick the daily window to count only the hours between two times each day, for example 09:00 and 17:00. The period is fixed when you run. Changing it afterwards marks the map as outdated until you run again, while the day above can change freely.

The map shows the hours of direct sun per point over the whole period. The colours are stretched between the 2nd and 98th percentile of the result, and the ends of the scale read ≤ and ≥. Over more than one day the legend adds the average per day. Under the period, the panel gives the observer’s total, for example “At the observer: 1,901 h of 4,524 h possible”.

The sun-hours legend with the stretched colour scale, the ≤ and ≥ ends and the average per day
The scale is stretched to the result. Its ends read ≤ and ≥.

Long periods are sampled: up to a week every day in 10-minute steps, up to a month six sample days, beyond that twelve sample days in 15-minute steps. On real Alpine terrain that stayed within about 1 % of an every-day reference.

How do I read the value at a point?

Click or tap the map. A card pins at that point with its coordinates, the ground height and the value shown: “In shadow at 11:00 on 21 Dec 2026” on the shadow map, or “2,790 h of 4,524 h possible (62 %)” on the sun-hours map.

A probe card on the map with coordinates, ground height and the sun hours of that point
The probe card. The crosshair in the toolbar switches it off.

Possible counts the hours the sun stands above that point’s own open horizon, so open ground reads 100 % and a summit never more. The crosshair button in the map toolbar switches the probe off and on again. On a desktop the status bar shows the ground height and the value under the cursor either way.

What can I export?

PNG and KMZ save the view you see, shadow or sun hours. GeoTIFF saves the data: the sun hours as real hours per pixel (32-bit float) for QGIS or GDAL, and the shadow as a mask of 0 and 255. The export buttons work as in the other modes, see Results: colours & export.

How accurate is it, and what are the limits?

  • Terrain. The run’s own elevation data at the chosen resolution, with earth curvature and optical refraction (k = 7/6). Ridges beyond the range count when they can cast shadow into it.
  • A person standing on the ground. Every point is computed 2 m above the surface. A window on an upper floor can see more sun.
  • Summits. High points see the sun below the mathematical horizon. The timeline and the sun hours include that early and late light.
  • Buildings and trees. Boxes at their mapped height, and a solid canopy at one height. A leafless winter wood still blocks.
  • Not modelled. Clouds, light from the sky and reflections. The hours are clear-sky direct sun, not a forecast and not a solar-yield estimate.
  • Memory. On a device with little memory the resolution can be coarsened, and the panel says so.

The story behind the mode, with the Lauterbrunnen example, is in The valley that gets 1 h 26 min of sun in December. Buildings and trees as obstacles are covered in Including buildings and Including trees.

Frequently asked questions

Why are there no eye and target heights in sun mode?

The question is where the sun falls, not who sees whom. Every point is computed for a person standing on the ground, 2 m above the surface, so the chart and the map always agree.

Do I have to run again when I change the day?

No. The day drives the chart, the shadow map and the timeline, and they redraw at once. Only a new sun-hours period needs a new run.

Why does a summit get sun before sunrise?

From a summit the horizon lies below the horizontal, so the sun shows above it before it reaches 0°. This is the dip of the horizon. The timeline and the sun hours include that light, and possible hours are counted against each point’s own horizon.

Does it take clouds into account?

No. Direct sun means a clear sky. The hours show what the terrain allows, not what the weather will do.

Can I use it to size a solar installation?

Not on its own. It counts hours of direct sun on the ground. A panel’s yield also depends on its tilt, its orientation, diffuse light and the weather, none of which the mode estimates.