Sun Terrain: sunrise and sunset behind real mountains
Ask a weather app when the sun rises in Zermatt on June 21 and it will tell you 5:37 AM. Stand in the town and wait: you will still be in deep blue shade two hours later. The walls around the valley hold the sun back until 7:51 AM and cut off the evening nearly three hours before the flat-horizon sunset. In winter, Yosemite Valley loses more than four hours of direct sunlight to its granite walls.
Most sun trackers assume you are standing on a flat ocean. Because we already run our own global 30-meter elevation server for Geo Elevation, I wanted a sun app that actually knows about the mountains around you — and draws their shadows moving across the land in real time. That app is Sun Terrain.
Real terrain, not a flat horizon
For any spot you pick, Sun Terrain fetches the surrounding 30-meter elevation grid and casts 720 rays around 360°, accounting for Earth curvature and atmospheric refraction. Intersecting that skyline with the sun’s path gives you the real terrain sunrise and sunset right beside the flat-horizon numbers, plus the exact minutes the ridges take off each end of the day — and every separate sunlit interval when a peak hides the sun mid-day and it comes back out later.
The painted bar at the bottom of every screen shows that difference immediately: the muted band is flat-horizon daylight, and the bright gold band inside it is when direct sun actually reaches where you stand.


Stand at eye level and watch the sun meet the ridge
Orbiting a 3D terrain block gives you the big picture of which valley wakes up first. Switching to Stand Here puts your eyes on the ground at true height. You can look around 360°, walk across the valley to test a different spot, and zoom up to 12× like binoculars to watch the sun slide down toward the exact notch in a ridge. Below is Yosemite Valley on December 21: you watch the winter sun drop behind the granite wall at 4:01 PM, followed by the 360° horizon profile and monthly sun-hours chart.
On the Mac, W A S D or the arrow keys walk, Shift runs, Q and E turn, scroll zooms, clicking the ground moves you there, and Esc returns to Orbit. Wherever you stop becomes the new observer point, so the horizon, times and cast shadows update around your new vantage point.
The 360° horizon, map shadows and alignment finder
Every place has four views — plus Split view on Mac, iPad and open iPhone Duo, which runs the 3D terrain and 360° horizon in lockstep as you scrub time:
- 360° Horizon. The full mountain silhouette around you against today’s sun path, June 21 and December 21, above a 12-month bar chart comparing flat-horizon daylight against real terrain sun hours.
- 2D Map. Live cast terrain shadows drawn over Standard, Satellite or Hybrid maps with sunrise, current sun and sunset rays. Drag the pin anywhere to recalculate immediately.
- Sun Alignment Finder. Aim at a peak, a notch in the skyline or any bearing and elevation. Sun Terrain searches the next year for the exact dates and times the sun lines up with that spot and tells you whether it clears the ridge.
- AR Sky on iPhone and iPad. Hold the camera up on location to see the sun’s path, the solstices and the computed 360° terrain horizon over the real sky.


Not only for big peaks: a house and its garden
Terrain is half the story when you are looking at a home, a garden bed or a solar roof. Search a street address and switch the area span to House (250 m): Sun Terrain pulls nearby building footprints in 3D from OpenFreeMap alongside the wider surrounding terrain horizon, so you can watch a neighbor’s roof shadow cross the backyard in December versus June.
Saved places, iCloud and Solar Report Cards
When you save a place, Sun Terrain remembers the exact date, time, view mode, area span and your notes, and autosaves adjustments as you make them. Saved places sync across your iPhone, iPad and Mac through your own private iCloud, and export as lightweight .sunterrain files you can AirDrop or mail to a friend. From Solar Details, one tap renders a shareable Solar Report Card PNG with the day’s numbers, the 360° horizon and the monthly sun-hours chart.
Six sample places come built in (Yosemite Valley, Zermatt, Kamikochi Valley, Phantom Ranch in the Grand Canyon, Chamonix, and Key West as a flat-horizon check), and you can also download a sample places file with Half Dome, Mount Fuji and Delicate Arch.
What the model knows and what it does not
The astronomical positions are checked against NOAA reference tables, and terrain heights come from global 30-meter ASTER and Mapzen elevation models. In House mode, nearby buildings come from OpenStreetMap via OpenFreeMap. Individual trees, new construction or narrow rock spires smaller than 30 meters are not in the model, so treat the times and shadows as a strong planning aid rather than a survey.
One purchase, private by default
Sun Terrain has no account, no ads, no tracking and no subscription — one upfront purchase covers iPhone, iPad, Mac and iPhone Duo. Coordinates you look up go transiently to our elevation server, OpenFreeMap and Apple Maps to load terrain, nearby buildings and map tiles; your saved places stay on your devices and in your own private iCloud. The app is localized in English, German, French, Spanish and Japanese.
More videos, screenshots and questions answered on the Sun Terrain page, and every view, option and shortcut is covered in the Sun Terrain guide.