Checked against NASA and JPL
How accurate is Moonat
Moonat places the Sun, the Earth and the stars over real lunar terrain and works out when the ground hides them. Each part was tested against an independent reference. This page lists every check: what is computed, what it was compared with, the measured difference, and the note that holds the method and the commands to repeat it. Then it lists what Moonat does not model.
Every measured figure (in green, at the start of each check) is copied from the note linked beside it. The date is the day the note was written. 1″ (arcsecond) is 1/3600 of a degree; "pp" is percentage points.
Where the Sun and the Earth are
Computed: the apparent direction of the Sun and the Earth from a point on the Moon (light time and aberration included, no atmosphere), in the Moon's Mean Earth frame. Reference: NASA JPL Horizons, the service used to plan spacecraft operations.
- 0.055 arcsecWorst difference of the reference pipeline from Horizons, over 399 rows. The target was 0.01° (36 arcsec). Note: ephem
- 0.086″The Sun, worst case of the code that runs in the browser, compared directly with Horizons at 20 random sites and times. Note: independent_check
- 0.124″The Earth, worst case of the same 20. Note: independent_check
- 0.49″One case inside the 3-hour table interval that holds the 2016 leap second: the largest difference found. Note: independent_check
The code in your browser against the reference code
Computed: the app's JavaScript physics (positions from the shipped tables, the share of the Sun's disk above the terrain, sunlight). Reference: the Python pipeline that was checked against Horizons, and exact geometry.
- 3e-11°Worst difference in the Sun and Earth directions between the browser code and the Python table reader, 288 cases (6 sites, 48 times). Note: physics
- 0.0025Largest error of the visible share of a disk cut by a flat horizon, against the exact circular-segment area (as a fraction of the disk). Note: physics
- 5e-14Largest difference of the visible share between the browser code and Python over 87 stored cases. Note: physics
The skyline: terrain horizons
Computed: the horizon around a site from NASA elevation models, with the Moon's curvature, and from it the share of time the Sun is in view. Reference: published illumination studies of the south pole, and our own precomputed horizons for terrain fetched live.
- 92.7 % / 95.8 %Average illumination and share of time lit at Gläser et al. (2014) connecting-ridge spot 3, 10 m above the ground, over 18.5 years. Published: 92.5 % / 95.6 %. Note: terrain
- 86.0 % / 90.6 %The same at spot 1, 2 m above the ground. Published: 88.1 % / 92 %. At 2 m the result depends on ground a few tens of metres away; this is the larger of the two differences. Note: terrain
- 0.07–0.37° RMSHorizons built in the browser from NASA Moon Trek terrain against the precomputed ones, where valley walls, massifs or crater rims set the skyline (Apollo 15, Apollo 17, Surveyor 7, Chang'e 4, Chandrayaan-3). On the flat Apollo 11 and Apollo 16 sites ground within a kilometre sets the skyline and the difference is larger. Note: terrain-everywhere
- 0.0000°Null test of the finest-terrain horizon code: run on the coarse layers, it returns every one of the 36 horizon files as they were. Note: horizons_finest
Eclipses of the Sun by the Earth
Computed: when the Earth covers the Sun as seen from the Moon (a lunar eclipse on Earth), with contact times. Reference: NASA's eclipse predictions (F. Espenak, NASA GSFC) for 14 March 2025 and 24 April 1967.
- 4.2 sNASA's whole-Moon contact times of both eclipses are reproduced within this. Note: eclipse
- 64–87 sA limit, not an error: Moonat uses the solid Earth. With NASA's enlarged Earth (its atmosphere) the Sun would disappear this much earlier and reappear this much later at a site. Note: eclipse
Apollo moments
Computed: the Sun in the sky at the Apollo sites at mission times, and the rover drives. Reference: the Apollo Lunar Surface Journal (ALSJ) Sun table and timeline, NASA TN D-7469, and LROC's measured positions.
- RMS 0.016°Sun altitude at 43 epochs of Apollo 11 to 17 (landing, the start and end of every moonwalk, liftoff) against the ALSJ table; the largest difference is 0.066°. Note: real_photos
- median 13 s, max 87 sThe rover's stops in the app against the arrival and departure times of the 28 numbered stations. Note: apollo_traverses
- median 15 m, max 26 mPlaces of the 9 Apollo 17 stations against the photogrammetric positions of Haase et al. (2019). Note: apollo_traverses
- 2.3 m, 1.3 m, 4.9 mThe final parking place of the rover on Apollo 15, 16 and 17 against the rovers measured in LROC images. Note: apollo_traverses
Not quoted here: the comparison with Apollo surface photos. A fit of a camera to a skyline can agree without showing that the ground below the skyline is right. That comparison is being checked again, with tests that can fail, and no figure from it appears on this page until it is done.
Whole-Moon sunlight maps
Computed: for every pixel, the share of time the Sun and the Earth are in view. Reference: NASA's polar illumination maps (Planetary Geodesy Data Archive, product 69, release 201608; method of Mazarico et al. 2011), pixel by pixel on the same 240 m grid.
- +0.15 ppMean difference around the south pole; the RMS is 1.08 pp and the correlation 0.9974. Note: global_visibility
- +0.60 ppMean difference around the north pole; the RMS is 1.40 pp and the correlation 0.9961. Note: global_visibility
- 18 250 km²Never-lit ground in the south, against 18 440 km² in NASA's map; the two maps share 97 % of it. Note: global_visibility
The Apollo 17 liftoff film
Computed: where the Lunar Module and the far hills stand as seen from the TV camera on the parked rover. Reference: NASA's film of the liftoff (ALSJ).
- +0.18°Elevation of the Lunar Module's footpads from the rover's eye on LROC's 5 m terrain model; the film gives the same value. On the 59 m terrain used before it was 2° too high. Note: a17_geometry
- 0.033°RMS of the film's far skyline about its median offset from the computed horizon, 161 columns. The camera was fitted to a skyline, so this tests the far hills only. Note: horizons_finest
Fine terrain: LROC stereo models and cleaning
Used: LROC NAC stereo terrain models of 2 to 6 m at landing sites, under the coarser LOLA and SLDEM2015 grids. Reference: LOLA laser tracks (LROC's own registration figures) and independent control points.
- 0.19 m standard deviationThe Apollo 17 model against 12 control points of Haase et al. (2019), an independent stereo solution; the mean difference is 0.00 m. Note: a17_geometry
- LOLA RMS 0.42 mThe best fit of a model to LOLA's tracks among the models in use, as published by LROC with each model. Note: pins_hires
- LOLA RMS 5.06 mThe loosest fit among them, from the same LROC figures. Note: pins_hires
- 1.61°The largest horizon change from removing isolated one-cell spikes in the elevation data: one false needle at Apollo 17. Of 42 sites, two horizons changed by more than 0.01°. Note: dem_spikes
Mars
Computed: the Sun and the Earth from 13 sites on Mars, 1971–2040. Reference: JPL Horizons.
- 0.0029 arcsecWorst difference of the reference pipeline, over 322 rows. Note: mars_ephem
- 0.0055 arcsecWorst difference with the tables the browser uses. Note: mars_ephem
Limits: what Moonat does not model
- The answer near the poles depends on ground close to the eye. When StarHab's horizon moved to finer terrain, its share of time with the Sun in view went from 83.7 → 79.0 % (Note: horizons_finest). A polar figure is for the stated terrain and eye height, and can move by several points with better terrain.
- Terrain resolution. Away from the special sites the terrain is SLDEM2015 at 59 m, or 118 m for a point you drop. Rocks, small craters and anything smaller than the grid are not there.
- Contact with Earth is line of sight only. No link budget, no antenna pattern, no ground station schedule, no relay satellites.
- The Earth's atmosphere in eclipses is drawn as a red ring but is not in the sunlight figures (see Eclipses above).
- No temperatures. Moonat gives light and darkness, not the thermal state of a vehicle or of the ground.
- Permanent shadow is not ice. The shadow maps say where sunlight never reaches, not what is in the ground.
- Dates. The shipped tables cover 1966–1976 and 2013–2040.
- Not covered: dust, radiation, regolith strength, launch and transfer trajectories.
- Review. These checks are our own. No outside group has reviewed them yet, and some notes record choices still waiting for the team's own review; each note says so.
The notes
Each note gives the method, the full tables and the commands that reproduce its numbers, as plain text.
- ephem: the ephemeris against JPL Horizons
- independent_check: the browser physics against JPL Horizons
- physics: the browser physics against the Python reference
- terrain: horizons and published polar illumination
- terrain-everywhere: live terrain for any point
- horizons_finest: horizons over the finest terrain
- eclipse: the Earth eclipsing the Sun
- real_photos: published Sun and Earth geometry (its photo comparisons are under re-check)
- apollo_traverses: the Apollo rover drives
- global_visibility: whole-Moon Sun and Earth visibility
- a17_geometry: the Apollo 17 liftoff film
- pins_hires: the finest terrain at every pin
- dem_spikes: spikes in the elevation data
- mars_ephem: Mars against JPL Horizons