Methodology

How we compute the eclipse, and how we check it

Every time, duration and magnitude on this site is computed by our own code from NASA's published data, then checked against NASA's own results before the site is built.

Last reviewed:

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.

Validation results

Computed while this page was built: our engine runs on the same reference locations and path table as NASA, and the build fails if any difference exceeds its tolerance.

Engine vs NASA JSEX output, 50 locations, same Besselian elements (ΔT 71.7 s)
QuantityToleranceLargest differenceResult
Eclipse type=50 of 50 identicalPass
Contact times (C1, C2, max, C3, C4)±1 s0.05 sPass
Duration of totality±1 s0.05 sPass
Magnitude±0.0010.00005Pass
Fraction of the Sun covered±0.0020.00050Pass
Sun altitude and azimuth±0.2°0.050°Pass
Engine vs NASA path table, 102 rows
QuantityToleranceLargest differenceResult
Central line position±0.02°0.004°Pass
Northern and southern limits±1 km0.34 kmPass
Central duration±1 s0.18 sPass

NASA rounds its published values (times to 0.1 s, angles to 0.1°), so differences of a few hundredths are rounding, not model error.

Sources

  1. NASA GSFC - Besselian elements, total solar eclipse of 2027 Aug 02
  2. NASA GSFC - Path table, total solar eclipse of 2027 Aug 02 (ΔT and lunar limb notes)
  3. NASA GSFC - JavaScript Solar Eclipse Explorer (JSEX)
  4. IGN - Total solar eclipse of 2 August 2027 (municipal tables, in Spanish)
  5. timeanddate.com - Total solar eclipse on 2 August 2027
  6. Astronomy Engine (Don Cross), MIT licence
  7. USNO - ΔT predictions
  8. GeoNames (CC BY 4.0)
  9. OpenFreeMap
  10. OpenStreetMap copyright and licence