Calculation pipeline

One authoritative state is computed from Julian Day, observer coordinates and the selected calendar convention. Civil input is converted to Julian Day; an estimated ΔT supplies a terrestrial-time approximation; compact precession, nutation and obliquity terms define the date frame; geocentric ecliptic longitudes feed the dial, inspector and Kundli. Local sidereal time and the observer’s latitude determine Lagna. Rahu is a mean lunar ascending node and Ketu is exactly opposite in this adopted model.

Ephemeris provider

The current provider uses the long-range approximate Keplerian elements published by NASA JPL for Mercury through Saturn, including the listed Jupiter and Saturn correction terms. Solar longitude is derived from Earth’s heliocentric vector. The Moon uses a truncated analytical longitude series. Light-time is approximated for planets. JPL itself describes these formulas as lower-accuracy and publishes their fitted interval and nominal errors; high-precision work should use Horizons or a numerical Development Ephemeris.

Supported input: astronomical years −3101 through 3000. More reliable use: modern centuries. The nominal JPL element interval does not make the compact Moon, frame, ayanāṃśa, ΔT or sunrise implementation equally accurate over that whole span. Ancient results may have substantial uncertainty.

Time scales and Earth rotation

UTC, UT1, TAI and TT are distinct. This browser has device UTC, not live UT1 or polar-motion data. The engine treats input Julian Day as UTC-like, estimates ΔT = TT − UT, and does not ingest current IERS Earth-orientation parameters or leap-second tables. Historical ΔT is modeled and increasingly uncertain backward in time. Local mean solar time follows longitude; apparent solar time additionally reflects the modeled Sun.

Solar events

Sunrise and sunset use an iterative hour-angle solution with a fixed −0.833° apparent altitude, a conventional bundle representing refraction and solar radius near sea level. Pressure, temperature and horizon-height controls are not yet separately exposed. Polar day/night returns no event. Cross-location results use fixed offsets shown in configuration; historical daylight-saving law is not reconstructed.

Calendars and tradition

Gregorian and Julian conversion use astronomical year numbering internally, with BCE/CE labels externally. The Kali convention is 18 February 3102 BCE (Julian), local mean midnight at Ujjain. It is a traditional chronological anchor, distinct from a classical mean conjunction, reconstructed physical positions and the recurring Chaitra year boundary. Panchanga and Chaitra logic are provisional and do not encode every regional rule.

Validation status

Automated invariants check angular coverage, wraparound, node opposition, phase/elongation consistency, shared state usage and calendar round-trips. Browser smoke tests verify navigation, rendering and controls. No broad comparison against Horizons or an authoritative sunrise dataset has yet established the prompt’s provisional 30-second solar target; the project therefore does not claim that accuracy. Measured automated results are recorded in VALIDATION.md.

Primary references

Future research

A replaceable numerical-ephemeris provider, validated lunar theory, explicit atmospheric inputs, regional calendar plugins and an uncertainty-aware inverse celestial-state solver are intentionally left as independent upgrades. The current static release does not download DE441 and does not call runtime astronomy APIs.