What we compute
For any point on Earth we compute the local circumstances of the eclipse: the moments of first contact, start of totality, maximum, end of totality and last contact, how long totality lasts, the magnitude and the fraction of the Sun covered, and where the Sun is in the sky (altitude and azimuth) at each moment. We also compute the path of totality, the central line and the outline of the Moon’s shadow at any instant.
Times are computed in UTC and shown in the local time zone of the place, together with UTC.
Data sources
- NASA Besselian elements for the eclipse of 2 August 2027, published by Fred Espenak (NASA Goddard Space Flight Center). These polynomials describe the geometry of the Moon’s shadow and are the standard basis for eclipse predictions. We use the per-eclipse table, which assumes ΔT = 71.7 s, the same value as NASA’s path table.
- NASA JSEX (JavaScript Solar Eclipse Explorer): we run NASA’s own code, unmodified, to produce reference local circumstances for 50 locations, and test our results against them.
- NASA path table: central line, northern and southern limits and central duration every two minutes, used to test our path.
- IGN (Instituto Geográfico Nacional, Spain) and timeanddate.com: independent published times, used as a cross-check for Spanish municipalities and major cities.
- Astronomy Engine: an independent open-source ephemeris library, used as a second, independent check of contact times.
- GeoNames: towns and cities with coordinates, elevation, population and time zone (CC BY 4.0).
- OpenFreeMap map tiles with OpenStreetMap data (© OpenStreetMap contributors, ODbL).
Validation
Before every build, an automated test suite compares our engine with the reference data. The targets are:
| Compared with | What | Tolerance |
|---|---|---|
| NASA JSEX output (same elements) | contact times, totality duration | ±1.0 s |
| NASA JSEX output | magnitude / fraction covered | ±0.001 / ±0.002 |
| NASA JSEX output | Sun altitude and azimuth | ±0.2° |
| NASA path table | central line position | 0.02° |
| NASA path table | path limits | 1 km |
| Astronomy Engine (independent) | contact times | ±10 s |
If a check fails, the site is not published. The latest results are shown below.
What nobody can predict to the second
ΔT (Earth’s rotation). Eclipse geometry is computed in a uniform time scale, but clocks follow the Earth’s slightly irregular rotation. The difference, ΔT, has to be predicted. NASA’s tables use 71.7 s; a USNO prediction for mid-2027 is about 69.3 s. If the true value is closer to USNO’s, every event happens about 2.4 s later than NASA’s tables say, and the path shifts by well under a kilometre. This is our own calculation from those two numbers.
The Moon’s edge. NASA’s predictions treat the Moon as a smooth sphere. Its real edge has mountains and valleys, which NASA notes may shift the path limits north or south by about 1 to 3 km and change durations by about 1 to 3 s. We do not model the lunar limb yet. That is why, within 5 km of a path limit, we show a “near the edge” warning instead of a confident yes or no.
Elevation. We use the elevation of each town from GeoNames. For a single viewing spot, a different elevation changes times slightly.
Attribution and licences
- Eclipse predictions: Fred Espenak, NASA’s GSFC. This site is not affiliated with NASA.
- Places: GeoNames, licensed under CC BY 4.0.
- Map data © OpenStreetMap contributors; tiles by OpenFreeMap.
The numbers described here power the local times for every town on the path, the where to stay in Spain planner and the eclipse FAQ.