Cosmicate
AstronomyAstrology

How Cosmicate computes everything

The engines behind every number on Cosmicate, the references we test them against (JPL Horizons, Swiss Ephemeris, NASA, IMO) and the accuracy we measured.

Cosmicate shows a lot of numbers. Every one of them is either computed by our own code or taken from a named source, and the computed ones are tested against independent references before they ship. This page explains how, and how close we get.

The engines

Positions of the Sun, Moon and planets come from astronomy-engine by Don Cross (MIT licence), which implements published planetary and lunar theories with precession, nutation, aberration and light-time. We add our own model of ΔT, the slowly changing difference between atomic time and Earth’s rotation. All of this runs in your browser, so the sky updates without a server.

On top of that sit our own modules: rise and set times using the almanac definition, eclipses and their local circumstances, conjunctions found from apparent ecliptic longitudes, meteor shower peaks from IMO solar longitudes, satellite passes with the SGP4 model (satellite.js), and the astrology engines for tropical charts, house systems, aspects, ayanamsas, nakshatras, dashas, divisional charts, the panchang and compatibility.

The references

Our main yardstick is NASA/JPL Horizons, the solar system ephemeris service of the Jet Propulsion Laboratory, using its DE441 ephemerisA table or model giving positions of the Sun, Moon and planets over time.. For astrology the de facto standard is Swiss Ephemeris from Astrodienst, which is also built on JPL ephemerides; we generate test values with it during development but do not ship it. Eclipses are checked against Fred Espenak’s NASA tables, meteor showers against the International Meteor Organization, and satellite passes against Heavens-Above.

Measured accuracy

These are the worst differences found in our test suites, not typical ones. An arcsecond (″) is 1/3600 of a degree; the Moon is about 1,800″ across.

Astronomy
WhatChecked againstResult
Sun, Moon and planet positions (RA/Dec)JPL Horizons (DE441), 50 geocentric cases, 1943–2040worst 20″ apparent; 26″ for the 2040 Moon, where future ΔT is uncertain
Positions as seen from a place, altitude and azimuthJPL Horizons, 96 cases at 4 sitesworst 21″
Rise, transit and setJPL Horizons, 66 eventsSun and Moon within 0.3 s; fixed stars within 7 s
Civil, nautical and astronomical twilightJPL Horizons, 30 crossingswithin 0.3 s
Equinoxes and solsticesJPL Horizonswithin 35 s
Planet conjunctions, oppositions, stations, elongationsJPL Horizonsconjunction longitudes within 20″; stations within 4 min; elongations within 8 min (the maximum is very flat)
Eclipse timesNASA GSFC eclipse tables (Espenak), 2026greatest eclipse within 4.1 s; durations within 1.4 min
Local solar eclipse (Madrid, 12 Aug 2026)JPL Horizons Sun and Moon positionscontacts within 3.6 s
Meteor shower peaksIMO 2027 Meteor Shower Calendarwithin 2 min of the calendar's own times, where it gives minutes
ISS passesHeavens-Above, New York and Gorakhpur, Oct 202614 of 17 passes within 1 s; the other 3 differ only in how darkness is defined
Satellite orbits (SGP4)Vallado et al. 2006 test vectors, 63 caseswithin 1 m
Astrology calculations
WhatChecked againstResult
Ayanamsa (Lahiri, Raman, KP)Swiss Ephemeris 2.10.03, 121 dates 1900–2100mean value within 0.01″; true value within 1″
Tropical and sidereal planet longitudes, nodesSwiss Ephemeris, 19 chartswithin 1′
Ascendant, midheaven and house cusps (Placidus, Koch, Equal, Whole Sign)Swiss Ephemeris, 5 chartswithin 1′ per cusp
Nakshatra, pada and navamsaSwiss Ephemeris, 14 birthsexact match
Tithi, nakshatra and yoga end times; sunriseSwiss Ephemeriswithin 10 s
SankrantiSwiss Ephemeris, all 12 of 2024within 60 s
ChironJPL Horizons and Swiss Ephemeris, 24 caseswithin 1′

For comparison, the eye can just separate two stars about 60″ apart. A 20″ difference in a planet’s position is far below anything you could notice, and one arcminute in an ascendant corresponds to about four seconds of birth time.

What we do not compute

Where we cannot compute something properly, we say so rather than estimate. We do not show satellite brightness, because there is no openly licensed catalogue of satellite magnitudes we trust. We do not estimate your Bortle classA nine-step scale of night-sky darkness, from class 1 (pristine dark site) to class 9 (inner city), devised by John E. Bortle in 2001. from a light-pollution map, because the openly available maps either forbid commercial use or do not measure sky brightness. Distances in the Atlas appear only where the catalogue has a parallax. When a weather or seeing forecast is unavailable, Cosmicate tells you which service failed instead of filling the gap.

Conventions we had to choose

  • Rise and set: the upper edge of the body on the horizon with 34′ of refraction, as in almanacs.
  • Conjunctions and oppositions: in apparent geocentric ecliptic longitude, as in the Astronomical Almanac.
  • Aspect orbs: there is no authoritative table, so we use our own documented defaults.
  • Lunar nodes for Rahu and Ketu: the true node by default; the mean node is available.
  • Sidereal zodiac: the Lahiri ayanamsa by default; Raman and Krishnamurti are available.

Data sources and licences for everything above are on the credits page.