A02 · How accurately does skyscapeR reproduce planetary and lunar positions?

Validation run of 9 November 2026. skyscapeR (reference study, 8 November 2026), swephR 0.3.2, Swiss Ephemeris 2.10.03, R 4.3.3.

Outcome for users

File-backed geocentric directions agreed with the corresponding JPL parent to within 0.0065″ in all 1,080 comparisons. The public position wrapper agreed with direct Swiss calls at numerical precision. For local solar, lunar and Venus directions, the maximum separation of the package from airless JPL Horizons was 44.4″ in 1900–2025 and 0.7013° in the prehistoric sample. These comparisons measure agreement between reconstructions. The prehistoric sample has no observational ground truth.

Empirical cumulative geocentric residuals for DE431 and DE441, and local median residuals by body and year

Geocentric ephemerides

Ten bodies (Sun, Moon, Mercury through Pluto), 54 dates and two file generations. Eight instants in each of 3500 BCE, 2500 BCE, 1000 BCE, 1900, 2000 and 2025 sample different orbital configurations. Six additional instants fall on and immediately beside the file boundaries at astronomical year −3000 and CE 1800. Sampling is deterministic and gives no statistical confidence interval for the maximum over all dates.

For each family, compare geometric Earth-centred equatorial Cartesian vectors in J2000 ICRS with the same numerical dynamical-time argument. This isolates the ephemeris from civil-time conversion. We evaluated JPL's ASCII Chebyshev coefficients independently, reconstructed the Earth from the Earth–Moon barycentre and the Moon, and checked 46 official JPL position or velocity components per DE generation. The largest evaluator discrepancy was 7.2 × 10⁻¹⁵ AU or AU/day. Vector separation uses the cross and dot products. The archive also gives signed Swiss-minus-JPL right ascension, declination and range residuals.

The median separation was 0.000257″ for DE431 and 0.000260″ for DE441. In each family 514 of 540 directions were within 0.001″. Venus gave both maxima (0.00646″ and 0.00540″). Astrodienst's description of compression accuracy is a useful reference value. This sample does not support 0.001″ as a universal bound on geocentric angular separation. File headers and hashes identify the parent separately for every block.

Public R functions and missing files

At a Maltese location we compared body.position() with direct swephR calls for all 54 instants, 10 bodies, both geocentric and topocentric modes, and refraction on and off. Both generations reproduced azimuth, altitude, right ascension and declination to better than 10⁻¹² degrees across 4,320 calls. All 108 moonphase() illuminated fractions matched the native backend. Agreement with the same engine verifies the wrapper and conventions. It does not independently establish refraction or phase accuracy.

Seven isolated installations tested file handling for the Sun. A covering pair succeeded. Empty, planet-only, Moon-only, out-of-block, just-before-block and corrupt-planet cases all raised skyscapeR_ephemeris_error. Particularly important for users, the native call returned the Swiss backend flag even with a planet-only file. The public function still rejected the incomplete pair.

Local sky directions

We compared Sun, Moon and Venus airless directions at three specified locations (Malta, Wiltshire and Atacama), four instants per year, 216 site–body–instant comparisons. Rows include directions above and below the horizon. Site longitudes are positive east, heights are geodetic, and azimuth is clockwise from true north. The public call used dec="topo", refraction=FALSE. Its true-position flag requests geometric positions, whereas Horizons supplies apparent directions. The primary metric is angular separation on the sky, which remains meaningful near the zenith where azimuth alone is unstable.

Two controls identify how much the convention matters. First, remove the true-position flag to request apparent directions directly from Swiss. Second, set Swiss ΔT to Horizons TDB−UT1, treating TT−TDB as negligible at this scale. We used UT1 before 1962 and converted modern Horizons UTC epochs to UT1 with the returned DUT1. The archive preserves each target, site, ephemeris, reference frame, time convention and API reply.

With apparent conventions and aligned clocks, the modern/historical maximum fell to 0.55″. The corresponding prehistoric maximum was still 0.719°, although the equatorial directions agreed to within 48.8″. Much of the remaining disagreement therefore appears in the transformation to the local horizon. This run does not assign it to either service or isolate a particular Earth-orientation model. The Horizons replies identify measured Earth-orientation coverage beginning in 1962. For a prehistoric alignment needing a tolerance finer than the reported differences, the choice of local reconstruction matters.

Local angular separation in arcseconds

N median rms maximum
group clock mode
modern/historical Horizons apparent 108.000000 0.241695 0.269931 0.549728
package 108.000000 20.168548 19.910979 44.390706
default apparent 108.000000 0.223732 0.262345 0.514884
package 108.000000 20.164530 19.909204 44.389527
prehistoric Horizons apparent 108.000000 1652.500621 1749.892239 2588.399196
package 108.000000 1637.466622 1734.821970 2587.973183
default apparent 108.000000 1396.345427 1522.250834 2542.523409
package 108.000000 1395.906353 1505.265866 2524.513589

“Package” uses the public topocentric convention. “Apparent” is the swephR control. “Default” uses Swiss ΔT. “Horizons” uses the aligned ΔT. Each row summarizes 108 comparisons.

Geocentric angular separation by body and period, in arcseconds

N median rms maximum
parent group body
431 modern/historical Jupiter 27.000000 0.000251 0.000321 0.000565
Mars 27.000000 0.000291 0.000388 0.001047
Mercury 27.000000 0.000617 0.000683 0.001517
Moon 27.000000 0.000175 0.000206 0.000490
Neptune 27.000000 0.000137 0.000141 0.000201
Pluto 27.000000 0.000147 0.000280 0.000518
Saturn 27.000000 0.000235 0.000397 0.000711
Sun 27.000000 0.000344 0.000688 0.001928
Uranus 27.000000 0.000142 0.000238 0.000480
Venus 27.000000 0.000480 0.001602 0.006460
prehistoric Jupiter 27.000000 0.000251 0.000323 0.000683
Mars 27.000000 0.000467 0.000682 0.001739
Mercury 27.000000 0.000445 0.000663 0.001694
Moon 27.000000 0.000180 0.000228 0.000405
Neptune 27.000000 0.000163 0.000185 0.000298
Pluto 27.000000 0.000124 0.000210 0.000487
Saturn 27.000000 0.000332 0.000448 0.000968
Sun 27.000000 0.000552 0.000604 0.001333
Uranus 27.000000 0.000197 0.000251 0.000425
Venus 27.000000 0.000365 0.000709 0.002808
441 modern/historical Jupiter 27.000000 0.000226 0.000294 0.000583
Mars 27.000000 0.000277 0.000440 0.001132
Mercury 27.000000 0.000509 0.000618 0.001369
Moon 27.000000 0.000196 0.000223 0.000407
Neptune 27.000000 0.000140 0.000163 0.000274
Pluto 27.000000 0.000151 0.000222 0.000375
Saturn 27.000000 0.000253 0.000401 0.000775
Sun 27.000000 0.000317 0.000639 0.001810
Uranus 27.000000 0.000132 0.000177 0.000313
Venus 27.000000 0.000457 0.001357 0.005396
prehistoric Jupiter 27.000000 0.000275 0.000315 0.000600
Mars 27.000000 0.000463 0.000760 0.002244
Mercury 27.000000 0.000402 0.000662 0.001602
Moon 27.000000 0.000228 0.000268 0.000496
Neptune 27.000000 0.000124 0.000180 0.000373
Pluto 27.000000 0.000218 0.000238 0.000383
Saturn 27.000000 0.000298 0.000548 0.001226
Sun 27.000000 0.000371 0.000581 0.001275
Uranus 27.000000 0.000271 0.000258 0.000323
Venus 27.000000 0.000326 0.000716 0.002966

Sources and reproduction

See the companion archive for scripts, individual residuals, the sampled coefficient records, raw Horizons replies and Swiss input hashes. Consult the Swiss Ephemeris technical information, the JPL Development Ephemeris ASCII archive and the Horizons manual.