ज्ञान सागरVedic Panchang Suite

Calculation Methodology & Verification

This page documents, in full transparency, how our calculation system works — who develops it, which astronomical theories and classical rules it runs on, how results are checked, and what we assume wherever values can differ. Trust is earned through information, not claims — which is why this document is public.

सत्यमेव जयतेTruth alone triumphs. (Mundaka Upanishad 3.1.6)
LahiriChitrapaksha ayanamsa
150+automated checks before every release
±2 minsunrise tolerance
±2′planetary longitude tolerance

Who develops the engine

The calculation engine is developed and maintained in-house by GoPixel (Lucknow, India — gopixel.in). No third-party astronomical service engine is used — from planetary positions to dasha tables, all the mathematics lives in our own code, so its audit and improvement at every level stay in our control.

Methodology

  • Astronomical basisPlanetary positions are derived from trigonometric series of standard astronomical theories — VSOP87-style series for the Sun's path, ELP-tradition series for the Moon, and NASA JPL's Standish long-term elements for the outer planets (Uranus, Neptune, Pluto). These are the same mathematical foundations on which widely used astronomical libraries are built.
  • Sidereal conversionPer Indian tradition, the Lahiri (Chitrapaksha) ayanamsa is applied — the same basis followed by the most widely used Indian panchangs.
  • Panchang elementsTithi, nakshatra, yoga and karana come from the angular difference between Moon and Sun — under the classical 12° / 13°20′ / 60° / 6° rules; the day begins at that location's sunrise (drik-ganita tradition). Sunrise/sunset use the standard 0.833° depression (including atmospheric refraction).
  • Special calculationsEclipse prediction uses full shadow geometry (contact/maximum/egress plus topocentric corrections for visibility); solar returns (Varshphal) and tithi boundaries use exact bisection search. Where classical tables are required (Ashtakoota, Panchak, Gandmool, Hora-Choghadiya, Yogini-Ashtottari periods), the rules from authoritative texts are coded directly — not approximated look-ups.

How results are tested

  • EclipsesThe engine's eclipse section is compared against NASA's public eclipse catalogue in our test suite (contact-maximum-egress times and type/visibility for upcoming years' eclipses).
  • Planetary longitudesCross-checked against an independent implementation (full VSOP87 based) — from Moon and Sun to Pluto.
  • Sunrise/sunset & panchangDuring testing, matched against published values from public reference sources — established services such as Drik Panchang — on selected dates and places.
  • Classical tablesAshtakavarga bindus, dasha-start rules, matching scores — verified against two independent implementations and authoritative sources such as Brihat Parashara.
  • Automated regression suite150+ automated checks run before every release (e2e HTTP tests, classical anchor tests, boundary values) — any failure halts the release.

How discrepancies are handled

Every calculation type has a defined tolerance limit:

Tolerance limits by calculation type
Sunrise±2 minutes
Planetary longitudes±2 arcminutes
Tithi / sankranti boundariesa few minutes

If a matched test value falls outside the limit:

  1. the calculation method is examined source-by-source on both sides,
  2. the decision goes in favour of the most established reference,
  3. the fix becomes a permanent check in the regression suite.

Where a difference is not a calculation error but a tradition difference (e.g. Smarta vs Vaishnava Ekadashi rules), we state our basis clearly — we do not silently declare one side correct.

When reviews happen

The full regression suite runs on every software release (this is the main safeguard). In addition, regular spot checks — the current month's panchang and upcoming eclipses — are matched against reference sources, and the ayanamsa value and long-range eclipse predictions are re-verified at least once a year.

Which traditions we follow

  • AyanamsaLahiri (Chitrapaksha).
  • Day countingSunrise to sunrise (drik-ganita).
  • MonthsPurnimanta for North India, Amanta for South India — both available in the relevant tools wherever applicable.
  • Vrat rulesPredominant Smarta practice; where the Vaishnava tradition keeps a different day (Ekadashi etc.), it is mentioned.
  • Chart stylesAll four — North, South, East and West Indian kundali renderings.

Key assumptions

  • Time zones follow the IANA tz database's historical rules (including India's IST and pre-local mean time).
  • Atmospheric refraction uses the standard value (0.833°) — in unusual weather the actual sunrise can differ by seconds to minutes.
  • Date entries are interpreted in the Gregorian calendar.
  • Western-style tools run on the tropical zodiac with equal-house system — this option is deliberately documented.
  • Displayed values are designed for practical panchang accuracy (typically ±2 minutes / ±2 arcminutes) — not a claim of research-grade astronomy.

An honest limit

This suite is built for high practical accuracy: astronomical positions and classical rules, matched against public references. It does not claim "100% accurate" — no calculation system can. For extremely important samskaras (marriage etc.), please confirm the final date with your family panchang or a qualified astrologer — see the Disclaimer.