TKS Jyotiṣa — methods & definitions

For each output: what the number means, the coordinate frame, the formula or rule, the source, and the variant that was chosen. Everything below was read off the running code (file names in brackets), revised 2026-10-08 after an external review, and again the same day for the profile system (TKS ★ · KP · Classic), the KP engine and the prediction layer (§11–§14) — where a choice is a limitation or a known inconsistency, it is stated as such rather than dressed up. Three rules are applied throughout: every number has a definition, every rule has a source, every result has a stated uncertainty.

1 Chart counts2 Ephemeris (TKS-EPH-2)3 True Chitrāpakṣa4 Time & sidereal time5 Sunrise6 Daśā year7 Bhāva-cālita8 Kāla graph9 Uncertainty10 Open items11 Profiles12 KP engine13 Topocentric Moon & osculating node14 Prediction layer, eclipses & graha-yuddha15 Western (beta)16 Numerology (beta)17 Tajika (beta)

1 · How many varga charts

The page shows 25 charts = D1 (Rāśi) + the “TKS 24-varga set” (varga::CHARTS). This set is not a classical group: it is the 15 remaining BPHS ṣoḍaśa-varga charts plus 9 extensions. The 16 Parāśarī ṣoḍaśa-varga (BPHS ch. 6) are D1 D2 D3 D4 D7 D9 D10 D12 D16 D20 D24 D27 D30 D40 D45 D60. The 9 extensions are labelled as such on the page: D5, D6, D8, D11 (divisional charts outside the sixteen), and the composite / fine divisions D81 (D9 of D9), D108 (D9×D12), D144 (D12 of D12), D150 (nāḍyāṃśa) and D300. Custom D-N (N = 1…300) is a uniform N-fold division.

D60 — two conventions. TKS numbers the sixty 30′-parts of a rāśi starting from Meṣa (the sign index is the part number mod 12). Most published translations and most software count from the occupied sign instead. Both are in circulation; which one a given BPHS edition intends depends on how its ch. 6 verses on D60 are read, and this page does not claim that either is “literal”. The chosen variant is printed on the chart; a switch is an open item (§10). Edition/verse references for each divisional rule are listed in the validation notes (Validation); a full per-rule verse table is an open item.

2 · The ephemeris — TKS Ephemeris, TKS-EPH-2, and the JPL solution they are built from

What TKS owns. The ephemeris stack used on these pages is TKS’s own: (a) TKS-EPH-2 (.tkseph, magic TKSEPH02) and its predecessor TKS-EPH-1, TKS’s compact long-span ephemeris files — a Chebyshev fit of the underlying solution, built by TKS’s own builder (tks_eph2_build) to a stated tolerance of 0.3 mas, with a published format specification, SHA-256 hashes, a reproducible build, and C / Python / WebAssembly readers (docs/tks-eph-2.md); (b) the independent DAF/SPK reader and Chebyshev evaluator; (c) the complete apparent-place reduction (light-time, solar deflection, aberration, frame bias, IAU 2006 / Vondrák precession, IAU 2000B nutation) and everything downstream — ayanāṃśa, sunrise, daśā, lagna, KP tables. TKS’s separate N-body integrator (“Engine B”) is not used by the Jyotiṣa pages.

What it is built from — credited once. TKS-EPH-1/2 are fits of the JPL Development Ephemeris DE440 (and DE441 for the long span): the planetary and lunar orbital solution itself was produced by NASA’s Jet Propulsion Laboratory (Park et al. 2021, AJ 161, 105). TKS-EPH-2 does not claim to be an independently observed or independently integrated ephemeris; it states its fidelity to the source (≤ 0.3 mas in the fitted span) and is distributed under TKS’s own licence terms. This is the one place on the page where the underlying solution is named.

LayerProduced byCoverageUsed for
TKS-EPH-2 evaluation file tks-eph-2_eval_1950-2050.tkseph (2.6 MB)TKS (fit of DE440, 0.3 mas)1950 – 2050public; the in-browser tools (Ākāśa sky, Panchāṅga 3-D viewer) and the free tier. Beyond 1950–2050 the same WebAssembly reader opens the long-span file lazily (HTTP Range, Enterprise key): header ≈ 3 KB, then only the segments a view needs (a ±40-day window of 7 bodies ≈ 7 KB) — bit-identical to reading the whole file, and the 789 MB is never downloaded
TKS-EPH-2 tks-eph-2_1550-2650.tkseph (28.5 MB)TKS (fit of DE440, 0.3 mas)1550 – 2650 CEthe Jyotiṣa pages (planets, lagna, KP tables, gochara, eclipses) and the panchāṅga / sunrise / limb-catalogue engine — read first wherever the file covers the instant
TKS-EPH-2 tks-eph-2_m13199-17190.tkseph (789 MB)TKS (fit of DE441)−13,199 … +17,190used automatically outside 1550–2650 (enterprise range); the 789 MB file is loaded on first use, so ordinary requests never pay for it
Source files read directly (de440.bsp, de441.bsp, fall-back de440s/de421)JPL (read by TKS’s own SPK reader)DE440 ≈ 1550–2650; DE441 −13,200-05-06 … +17,191-03-15fall-back only (a missing file, an epoch in a segment-edge day), and the reference the fits are checked against
Which file does this page read? The Jyotiṣa path now reads TKS-EPH-2 first (Kernels::open_default_with_eph2; TKS_EPH2=off or a path in the environment overrides it; one day at each end of a span is left to the SPK files; outside 1550–2650 the long-span file (−13,199 … +17,190) is used instead — only its header is read at start-up, and the coefficients are streamed into memory on the first request that needs them, ≈ 789 MB, resident afterwards). Every call of the engine’s state(body, center, TDB) consults the TKS-EPH-2 file where it covers the epoch and falls back to the JPL kernels elsewhere, so planets, the Moon (hence the topocentric Moon and the osculating node), sunrise and the KP tables all run on it. /v1/tks/ephemeris returns kernel.tks_eph2 (the file in use at that instant) beside kernel.active (the source kernel). Check made 2026-10-08: five births (1960, 1985, 2001, 2026, 2040), 115 nirayana longitudes (planets, nodes, lagna and cusps) computed once from the source SPK files and once through TKS-EPH-2: largest difference 0.0003″ (0.3 mas, the fit tolerance); not one star, sub-lord or house assignment changed and every KP event verdict was identical. Far range: six births from −9000 to +16000 (126 planet and cusp longitudes, DE441 read directly vs the long-span TKS-EPH-2 file): largest difference 0.0001″, no lord changed.

Source-kernel selection and the seam

For the direct SPK path, selection is by the first kernel in the list whose coverage contains the instant (Kernels::active_for); the active kernel is returned in every /v1/tks/ephemeris response (kernel.active). Checked: 1700 CE → DE440; 1500, −3000 and +3000 CE → DE441. The full −13,200…+17,191 span is available to enterprise keys only; the free tier is 1950–2050.

Size of the seam (DE441 − DE440, apparent geocentric ecliptic longitude, each kernel read alone; examples/kernel_seam.rs):

YearMoon ″Sun ″Mars ″
1560 (≈ lower seam, 1550)+0.3160.0000.000
1700+0.0800.0000.000
2000+0.00050.0000.000
2300+0.0200.0000.000
2640 (≈ upper seam, 2650)+0.0550.0000.000

So the jump when the engine switches kernels is ≈ 0.3″ at 1550 and ≈ 0.06″ at 2650 for the Moon (≈ 0.6 s and 0.1 s of lunar motion) and zero for the Sun and planets — the planetary solution is common to both files; the difference is the lunar orbit (DE441 omits the lunar-core damping that DE440 includes). TKS-EPH-2 is fitted separately to DE440 and DE441, so it inherits the same seam.

3 · True Chitrāpakṣa ayanāṃśa

Definition. A(t) = λ(Spica, ecliptic of date, t) − 180° — the ayanāṃśa that keeps Spica (Citrā) at exactly 180° nirayana at every instant. [tks-ephemeris/src/ayanamsa.rs]

ItemChoice
Star / catalogueα Vir, HIP 65474, Hipparcos original reduction (CDS I/239), epoch J1991.25: RA 201.29835230°, Dec −11.16124491°
Proper motionμα* = −42.50, μδ = −31.73 mas/yr, applied linearly from J1991.25 (Julian years of TT). Freezing it (no PM) is available as a research control; the proper-motion contribution is ≈ 50 mas/yr along the ecliptic, i.e. ≈ 0.14° per 10,000 yr.
Parallax, light deflectionnot applied to the star. Annual aberration is also not applied — this is a choice, see “Two variants” below.
Binary nature of SpicaSpica is a close spectroscopic binary (P ≈ 4.0 d). The catalogue position is used as is; the photocentre wobble (of order 1 mas) is far below the 1″ display precision and is not modelled.
FrameICRS → frame bias + IAU 2006 precession (Fukushima–Williams) + IAU 2000B nutation (77-term, ERFA nut00b) → true ecliptic of date; beyond |T| = 10 Julian centuries the Vondrák (2011) long-term precession is blended in (full weight at ±3000 yr). So the value is a “true” (nutation-included) ayanāṃśa.
“Apparent” vs “mean”True (includes Δψ). A mean-equinox variant is obtained by subtracting Δψ; Swiss SIDM_TRUE_CITRA comparison below is therefore made with Swiss with nutation.

Two variants: geometric (TKS) and apparent (Swiss)

TKS defines the ayanāṃśa from Spica’s geometric direction (no aberration): A = λ★(true ecliptic of date) − 180°. Swiss Ephemeris SIDM_TRUE_CITRA uses Spica’s apparent place, which includes annual aberration, Δλ★ ≈ −20.50″·cos(λ☉ − λ★). Because the Sun–Spica angle changes through the year, the TKS − Swiss difference is not a steady offset — it swings between about +20″ and −20″ over a year:

Date (12:00 UT)TKS − Swiss TRUE_CITRA, measured ″Predicted by aberration ″Residual ″
2026-01-01+4.72+4.66+0.06
2026-04-01−19.95−20.01+0.07
2026-07-01−5.06−5.14+0.08
2026-10-01+19.77+19.71+0.06
2000-01-01 … 2000-10-01+4.84 · −20.02 · −4.85 · +19.84+4.77 · −20.06 · −4.92 · +19.77+0.05 … +0.07

After removing aberration the two agree to ≈ 0.07″ in every sample. So the earlier “steady +4.5…5.1″ offset” was an artefact of comparing at the same calendar date (1 January) each year — the aberration phase was always the same. Attribution settled: the offset is annual aberration, not a different Spica position or proper motion. Neither variant is “wrong”: both are published implementations. Which to use: geometric (TKS) is the choice for a smooth, date-independent ayanāṃśa; apparent (Swiss) reproduces an observer’s Spica at that instant. An apparent variant (adding the aberration term above) is a small addition and is listed as an open item (§10); it would move rāśi/nakṣatra flip times by ≲ 40 s (Moon, ±20″ / 0.55″ per s).

Comparison with Lahiri (arc-seconds; Swiss Ephemeris 2.10 with nutation, 1 Jan each year; measured 2026-10-07):

YearTKS true Citrā °TKS Lahiri model °TKS − Lahiri ″TKS-Lahiri − Swiss LAHIRI ″
195023.14266523.157700−54.1−0.48
197523.49713123.512324−54.7−0.91
200023.83749023.853067−56.1−0.56
202524.19035024.206145−56.9−0.78
205024.54350524.559645−58.1−0.62
TKS true Citrā and the official Lahiri differ by ≈ 55–58″ ≈ 0.9′ today. This is a definition gap (Lahiri was fixed in 1955 from the star positions then adopted), not an error.

Lahiri model. The ICRC value that Swiss SIDM_LAHIRI encodes is 23°15′00.658″ (23.250182778°) on 1956-03-21 (JD 2435553.5), a mean ayanāṃśa. The TKS Lahiri line is a polynomial matched to Swiss and includes nutation (i.e. it is a true ayanāṃśa); against Swiss-with-nutation it agrees to ≲ 1″ (last column). Comparing it with a mean-ayanāṃśa value would show up to ±17″ of apparent difference — that is Δψ, not a model error. Beyond 1800–2200 the Lahiri line follows the long-term precession instead of the quadratic.

Ayanāṃśa selectable per profile (TKS · KP · Lahiri)

The Jyotiṣa engine takes ayanamsa=tks|kp|lahiri (ayanamsa.rs · AyanamsaKind). It enters every nirayana longitude, the lagna/MC conversion and the cusps; it is part of the snapshot cache key.

ProfileAyanāṃśaDefinition
TKS ★True Chitrāpakṣaas above (geometric Spica − 180°, nutation included)
KPKrishnamurtimean Lahiri − a constant. The constant is fixed by the Swiss-Ephemeris definition SE_SIDM_KRISHNAMURTI: 22°21′50″ = 22.363889° at 1900-01-01.0 (JD 2415020.0), carried on the same precession as Lahiri. Lahiri(mean) at that epoch is 22.460477°, so the offset is 0.096588° = 5′47.7″. KP ayanāṃśa contains no nutation term.
ClassicLahiri (ICRC)the TKS Lahiri model (§3 table; true, nutation included)
1 Jan, 12:00TKS °KP °Lahiri °TKS − KP ″Lahiri − KP ″
195023.14268423.06210023.157711290.1344.2
197523.49713223.41124923.512325309.2363.9
200023.83748123.76043623.853058277.4333.4
202624.20579624.12366024.221679295.7352.9
205024.54351424.45896424.559655304.4361.6
Status of the KP value: the 22.363889° anchor is the one published in the Swiss Ephemeris documentation; it has not yet been checked against a printed KP Reader / Krishnamurti-Panchang table (§10). KP practitioners also circulate an older and a “new” KP ayanāṃśa; only the one above is implemented. The ≈ 5′48″ shift moves a Moon longitude across a KP sub-lord boundary often (one sub lasts minutes of arc), so the choice is not cosmetic.

4 · Time scales, ΔT and sidereal time

5 · Sunrise (and everything that hangs on it)

Definition: the instant when the geometric centre of the apparent Sun (TKS apparent place, true equinox of date, topocentric hour angle from GAST) is at altitude −0.833° = semi-diameter 0.267° + standard refraction 0.566°. That equals the upper limb touching the horizon with standard refraction; it ignores observer elevation (no horizon dip) and local pressure/temperature. [tks_panchanga.rs · sunrise_sunset_jd0_eph] Method: altitude scan every 2 min, then 40 bisection steps (numerical resolution ≪ 1 s).

How much the convention matters. Near the horizon the Sun’s altitude changes by ≈ 15°·cos φ per hour (≈ 13°/h at 30° N). Hence:

AlternativeAltitude differenceShift of sunrise at 30° N
Disc centre at 0° (no refraction, no semi-diameter) — used by some Sūrya-siddhānta practice0.833°≈ 3.8 min at the equinoxes, up to ≈ 4.3 min at the solstices
Disc centre at −0.566° (refraction only) vs upper limb0.267°≈ 1.2 min
Observer elevation h m (dip ≈ 1.76′·√h)e.g. 1000 m ⇒ ≈ 0.9°≈ 4 min earlier at 1000 m on a clear eastern horizon (hill stations)

So a vāra-flip “uncertain window” must be ≈ ±4 min, not ±1 min, if the disc-centre convention is to be treated as admissible. It is used for: vāra (the day changes at sunrise), the tithi / nakṣatra / yoga / karaṇa prevailing at sunrise, ghaṭī, dinamāna/rātrimāna, hora and the sunrise-anchored muhūrta day. Only the upper-limb convention is offered today (§10).

6 · Daśā year length

Vimśottarī and the other daśās convert years to days with a single constant of 365.2425 days (dasha.rs · SIDEREAL_YEAR_DAYS). That is the Gregorian mean year; the constant is named “sidereal” in the code but its value is not the sidereal year (365.25636 d). The three common alternatives and the shift they cause over a full 120-year Vimśottarī cycle:

Year definitionDaysShift vs 365.2425 over 120 yr
Tropical / Gregorian mean (used)365.24250
Julian365.25+0.9 d
Sidereal365.25636+1.6 d
Sāvana (360 d)360−630 d (≈ 1.7 yr)
Nakṣatra year, 12 × 27 days324−4,949 d
Nakṣatra year, 12 nakṣatra-months (12 × 27.3217 d)327.86−4,486 d

So 365.25 / 365.25636 only move antardaśā boundaries by a day or two; the 360-day sāvana year moves late-life daśā dates by months to ~1.7 yr. A user-selectable year length is not yet implemented (§10); until it is, daśā dates should be read as “Gregorian-mean-year” dates.

7 · Bhāva-cālita (Śrīpati)

Rule (bhava_chalit.rs, following Rāṣṭriya Saṃskṛta Saṃsthāna 9.3.4; the primary source is Śrīpati’s Śrīpatipaddhati — the verse reference is an open item, §10). The lagna is the madhya of bhāva 1 and the daśama (MC) the madhya of bhāva 10; the 4th madhya is MC + 180°, the 7th lagna + 180°. The arc lagna → 4th is divided into six equal parts of size s, the arc 4th → 7th into six parts of size s₂. Because each bhāva spans two parts: the madhyas of bhāvas 1, 2, 3, 4 lie 2s apart (L, L+2s, L+4s, L+6s = 4th), and the sandhis (bhāva boundaries) lie at the odd parts L+s, L+3s, L+5s — the midpoints between successive madhyas. Likewise 4→7 with s₂. Bhāvas 8–12 are the opposites (+180°). A graha belongs to the bhāva whose sandhi-to-sandhi arc holds its longitude.

In house-system terms this is a Porphyry trisection used for the madhyas: the Porphyry method trisects each quadrant (Asc→IC, IC→Dsc, …) and takes the trisection points as cusps (house starts); Śrīpati takes the same trisection points as bhāva-madhya and puts the sandhis halfway between them. So Śrīpati’s sandhi cusps are the midpoints of Porphyry’s cusps.
SystemDifference
Whole-sign (Rāśi chart)bhāva = rāśi counted from the lagna rāśi; no sandhi.
Equal house from lagnacusps at lagna + 30°·k; Śrīpati keeps the same lagna and MC but stretches/shrinks houses so that the MC is exactly a madhya.
Placidus / KPtime-based semi-arc trisection (not an ecliptic-longitude trisection); fails beyond the polar circles. Now computed in the KP profile (§12): cusps 11, 12, 2, 3 by iterating the semi-arc fraction (⅓, ⅔ of the diurnal / nocturnal semi-arc) from the local RAMC; cusps 1 and 10 are the Asc and MC, the others are opposite. RAMC and true obliquity come from the engine’s own GAST. Not defined for |φ| ≥ 66° — the KP block then reports an error instead of a fallback.

MC/lagna in the TKS path come from lagna_dashama_nirayana (GAST, true obliquity, true Chitrāpakṣa). The fixed ε = 24° constant in dashama_from_ramc belongs to the legacy (non-TKS) path only and is not used for TKS charts.

8 · Kāla graph / “Kāla forecast”

These panels combine existing deterministic outputs (daśā lords, transits, ṣadbala-type scores, aṣṭakavarga) into Opportunity, Resistance and Net = Opportunity − Resistance along a time axis. They are computational summaries of the rules the page already shows, not predictions, and carry no statistical validation of outcomes. “Kāla forecast” therefore means “a list of favourable-/unfavourable-by-rule time windows for a chosen activity”; it is labelled Kāla-sūcī (rule-based window list) on the page. The weights are the page’s own and are shown with each point’s cause chain.

Update — «भविष्यफल» (TKS profile). The same Kāla Resonance series is now shown per life-area (eight domains: career, finance, marriage, property, education, health, spiritual, overall) × month as a heat-map. Colour = the domain’s z-score (point value minus that domain’s mean over the horizon, in σ); “favourable” ≥ +0.5σ, “caution” ≤ −0.5σ, runs of consecutive points are merged into spans. The Hindi text is assembled only from fields of the series (daśā chain, domain score, opportunity vs resistance, the planets with the largest contribution); no sentence is generated that is not tied to such a number. Back-test: the user can supply past events (date, domain, ±1); the engine reports for each the score, its percentile and z against the domain’s random-date baseline, the hit count, the mean signed z and a permutation p-value (how often random dates do as well); with ≥ 4 events a leave-one-out re-weighting is attempted and its verdict is reported (it usually says “no reliable gain” on small samples). This is a decision-support indicator, not a prediction, and it has not been validated on a population of charts.

9 · Stated uncertainty

QuantityTypical uncertaintyDominant source
Planet longitude, tropical (DE kernel + apparent-place reduction)milliarcsecond levellight-time, deflection, aberration, precession/nutation model (IAU 2000B ≈ 1 mas)
Planet longitude, nirayanatropical error ⊕ the ayanāṃśa choice: geometric vs apparent Citrā differ by up to ±20.5″; TKS vs Lahiri by ≈ 56″§3 — every graha inherits the ayanāṃśa uncertainty
Moon longitude0.55″ per second of ΔT / UT1 error; no ΔT model error in 1972–2026 (exact TT − UTC)§4
Sunrise±3.8–4.3 min between disc-centre and upper-limb conventions; up to ≈ 4 min more for elevation; refraction not modelled§5
ΔT (before 1972)sub-second (1800s) … tens of seconds (1500) … minutes–hours (antiquity)SMH2016 fit
Lagnathe ascendant moves ≈ 10–25″ per second of clock time at Indian latitudes (30° N: long-ascension signs such as Kanyā/Tulā ≈ 2 h 40 m ⇒ ≈ 11″/s; short ones such as Mīna/Meṣa ≈ 1 h 20 m ⇒ ≈ 22″/s). DUT1 ≤ 0.9 s ignored ⇒ up to ≈ 20″birth-time accuracy; DUT1
Tithi / nakṣatra / yoga end timesfollow the Moon: 1 s of ΔT ≈ 1 s; a ±20″ ayanāṃśa variant moves a nakṣatra end by ≈ 36 s (Moon 0.55″/s); a 5″ choice ≈ 9 s. Milliseconds printed are display precision, not accuracy§3, §4
Daśā start balance (Vimśottarī)one nakṣatra = 13°20′ = 48,000″. An ayanāṃśa difference ε″ shifts the balance by ε/48000 of the first daśā: ±5″ ⇒ ≈ ±0.8 d for a 20-yr Śukra daśā; ±20″ (aberration swing) ⇒ ≈ ±3 d; TKS vs Lahiri (56″) ⇒ ≈ 8.5 d§3
KP sub-lord of a planet or cuspthe 249 divisions are as small as 0°00′40″ of arc (Ketu sub inside Ketu star ≈ 0°46′40″; the smallest sub-sub ≈ 20″); a 5′48″ ayanāṃśa choice or a 9′ Moon-parallax shift moves a position across one or several subs. A lagna sub-lord flips with ≈ 2–4 minutes of birth time§3, §13, birth-time accuracy
Topocentric Moongeocentric − topocentric longitude up to ≈ 1° (horizontal parallax ≈ 57′); e.g. 9.4′ for a morning birth at 30°N, enough to change the KP sub-lord (shown on the page) and, near a nakṣatra edge, the daśā§13

Boundary rule: whenever a result sits within its stated uncertainty of a rule boundary (a rāśi/nakṣatra/varga cusp, a sunrise-dependent vāra flip, a limit such as the 1° sandhi), read it as “either side”. The page does not yet flag such cases automatically (§10). Not yet covered at all: the historical time-zone / local-mean-time and pre-1947 Indian-time rules (IANA tz, LMT) that decide the UTC instant of an older birth; geodetic-vs-astronomical latitude (vertical deflection, up to ≈ 10″ in hill regions); cross-engine comparison of graha/lagna positions (only the ayanāṃśa is compared today); and a published test-vector set.

10 · Open items (honest list)

  1. Western (open): Chiron and the main asteroids; Koch / Regiomontanus / Campanus houses; a Lilith variant that matches Swiss; heliocentric, harmonic and composite/synastry charts; outcome validation of the forecast timeline (none yet).
  2. Ephemeris path (done 2026-10-08): the Jyotiṣa snapshot runs on TKS-EPH-2 over the whole range, the 1550–2650 file first and the 789 MB long-span file beyond it (§2). Open: that file is read fully into memory on first use (≈ 789 MB); a memory-mapped reader would remove the resident cost.
  3. KP (new, open): verify the KP ayanāṃśa constant and the event→house tables against a printed KP Reader / Panchang; the table is the commonly published grouping, not a single cited source. Decide with a KP authority whether Rāhu/Ketu agency should include aspecting planets (only the sign lord and same-sign conjunct planets are used today) and whether KP truly uses the topocentric Moon (the profile uses it by choice; the page shows the geocentric result beside it).
  4. KP timing: the bhukti-window score (weights 4/3/2/1 for significator levels 1–4, −2 for denying houses at levels 1–2, +3 for the cusp sub-lord, +2/+1 for Jupiter/Saturn transit confirmation) is a heuristic and has not been validated; Moon transit and antara (third-level) windows are not computed.
  5. Prediction layer: no outcome validation across a set of charts yet; the back-test is per user and small-sample. Graha-yuddha winner rules differ by school (northern latitude / brightness / size are all shown; none is declared “the” rule).
  6. Done 2026-10-08: attributed the TKS – Swiss offset (annual aberration, §3); exact TT − UTC for 1972–2026 (§4); one model-consistent GAST everywhere (§4); varga naming (§1); sunrise-shift numbers (§5); Śrīpati wording (§7); kernel seam measured (§2).
  7. Offer an apparent (aberrated) ayanāṃśa variant next to the geometric one; show both when a flip lies between them.
  8. IERS Bulletin-A/B (DUT1, polar motion) for UT1 after 1962; observed ΔT after 2026-01-01 instead of the SMH extension.
  9. Sunrise variants: disc-centre / upper-limb × refraction × elevation dip; report both when a vāra flip lies in the gap.
  10. Selectable daśā year (365.2425 · 365.25 · 365.25636 · 360 · 324 · 327.86), printed with each daśā date. (The 365.2425 constant is named SIDEREAL_YEAR_DAYS in the code but is the Gregorian mean year.)
  11. D60 convention switch (from Meṣa / from the occupied sign) and a verse-and-edition table for every divisional, doṣa and yoga rule.
  12. Śrīpati: cite the Śrīpatipaddhati verse(s) for the madhya/sandhi rule.
  13. Automatic “within-uncertainty” flag on every boundary-dependent output.
  14. Historical civil time (IANA tz, LMT, pre-1947 Indian time); geodetic vs astronomical latitude; published test vectors and cross-engine graha/lagna comparison.
  15. Replace the legacy ε = 24° constant wherever the non-TKS path is still reachable.

11 · Profiles — TKS ★ · KP · Classic

The page can be read under three profiles (URL ?profile=tks|kp|classic, remembered in the browser). A profile is only a set of defaults for the computation basis plus the set of sections shown; every default can be changed in “गणना-आधार”. The profile in force is printed in the banner (ayanāṃśa with its value, Moon, node, house system, daśā year, engine).

TKS ★ (default)KPClassic
AyanāṃśaTKS true ChitrāpakṣaKP (Krishnamurti)Lahiri (ICRC)
Moontopocentrictopocentric (user’s reading of KP sources; geocentric result shown beside it)geocentric
Lunar nodetrue (osculating)true (osculating)mean
Houseswhole-sign + Śrīpati bhāva-cālitaPlacidusŚrīpati bhāva-cālita
Daśā year365.2425 d in all three (§6; selectable year is open, §10)
Sectionsall, plus Kāla Resonance, varga/nāḍyāṃśa sandhi, varga-daśā, eclipses, graha-yuddha, stellium, kakṣyā, «भविष्यफल»birth details, avakahaḍā, basis, KP block (incl. its own gochara confirmation), rāśi/cālita, graha-sphuṭa, Vimśottarīclassical set; TKS-only analyses hidden

Why KP hides some modules. KP judges an event from the sub-lord of the relevant cusp and the significators of the houses, not from planetary conjunction, war, aṣṭakavarga-kakṣyā, divisional charts or eclipses. Stellium, graha-yuddha, kakṣyā grid / micro-vedha, varga-gochara, eclipse hits, and the Parāśarī transit / sāḍhesātī sections are therefore hidden under KP (they stay in TKS and Classic). Conjunction matters in KP only through the node-agency rule (§12). This is the author’s reading of the KP method, not a quotation; see §10.

12 · KP engine src/kp.rs /v1/vedic/kp

ItemDefinition
Star, sub, sub-sub lordsZodiac in 27 nakṣatras of 13°20′; the star lord follows the Vimśottarī order from Ketu (Aśvinī). Each nakṣatra is divided into nine subs in the same order starting from the star lord, each sub proportional to its Vimśottarī years (7, 20, 6, 10, 7, 18, 16, 19, 17 of 120); each sub is divided again the same way for the sub-sub lord. Unit tests: Aries 0° = Ketu/Ketu/Ketu; Aśvinī 0°54′ = Ketu/Venus.
The 249 divisions27 × 9 = 243 subs, plus the 6 extra splits where a rāśi boundary falls inside a sub: 249 (asserted by a unit test; KP number 1 starts at 0° Meṣa).
CuspsPlacidus (§7), converted to nirayana with the profile’s ayanāṃśa; each cusp carries sign, star, sub, sub-sub lord and KP number.
Planet tablenirayana longitude (topocentric Moon and osculating node in this profile), the four lords, KP number, the Placidus house occupied, the houses owned (lord of the sign on the cusp), the houses signified.
Significators of house hfour levels, strongest first: ① planets in the star of an occupant of h; ② occupants; ③ planets in the star of the owner (sign lord of cusp h); ④ the owner. A planet’s “signified houses” are those where it appears at any level.
Rāhu / Ketu agencyRāhu and Ketu act for (a) the lord of the sign they occupy and (b) every planet in the same sign (not the other node). At each house they are added at the best (lowest-numbered) level of any of their agents; the added entries are listed with house and level. Aspects are not used (open, §10).
Ruling planetsseven sources for the instant: weekday lord; Moon’s sign, star, sub lord; lagna’s sign, star, sub lord; counted and ranked.
Event promiseper event a cusp, promising houses and denying houses (marriage: cusp 7, 2·7·11 vs 1·6·10; job: 10, 2·6·10·11 vs 1·5·9; business 10, 7·10·11; higher education 9, 4·9·11; children 5, 2·5·11; foreign 9, 3·9·12; property 4, 4·11·12; recovery 1, 1·5·11 vs 6·8·12; gain 2, 2·6·10·11). The cusp’s sub-lord decides: promised if it signifies ≥ 2 promising houses and more promising than denying houses; denied if it signifies none, or more denying than promising; otherwise weak. The table is returned with every response (kp.rules) so it can be audited or replaced.
Timing windowsVimśottarī mahā-daśā × bhukti from the Moon’s star lord and balance (365.2425-day year). For a window: strength of each lord = Σ over promising houses of weight 4/3/2/1 for significator level ①–④, minus 2 for each denying house at level ①–②; window score = strength(daśā lord) + strength(bhukti lord) (+3 if either is the cusp sub-lord, +2 if either is its star lord and that star lord signifies the primary house). Rating: ≥ 8 strong, ≥ 4 possible, else weak (final score, after transit confirmation).
Gochara confirmationFor windows with base score ≥ 3 and a single chosen event: Jupiter (2-day step), Saturn (3-day step) and the Sun (1-day step) are traced through the window; a day “confirms” when the transiting longitude lies in the star or sub of any of the three lords of the window (daśā lord, bhukti lord, cusp sub-lord). Runs of confirming days are reported; Jupiter and Sun overlapping gives a “peak” span. Score +2 if Jupiter confirms, +1 if Saturn confirms. The Moon is not traced (too fast), and the transit positions use the profile’s ayanāṃśa.
Horary (1–249)The querent names a number; the ascendant is the start (or middle, horary_pos=mid) of that division; the RAMC is solved from that ascendant (closed-form inverse of the ascendant formula, unit-tested to 10⁻⁶°), the cusps are Placidus for that RAMC, and the planets are those of the moment of the query — hence the page offers “प्रश्न: अभी”.
Moon sensitivityThe block compares the Moon on the used basis with the other one (topocentric ↔ geocentric): star, sub, sub-sub, KP number, house, the separation in arc-minutes, and flags when the star lord (hence the daśā) or the sub lord changes.

13 · Topocentric Moon and osculating node

Topocentric Moon. The geocentric apparent direction is replaced by the direction from the observer (latitude, longitude, altitude; topocentric_nirayana), so the diurnal parallax — up to about 57′ (the Moon’s horizontal parallax) — is included; the effect on longitude depends on the Moon’s altitude and azimuth. It changes the Moon’s rāśi/nakṣatra only near a boundary, but it moves the Vimśottarī balance (a 9′ shift is ≈ 0.07 of the 13°20′ nakṣatra, i.e. ≈ 1.4 yr of a 20-yr daśā) and, in KP, the sub-lord. The TKS and KP profiles use it by default; the “Topocentric Moon” panel shows the geocentric/topocentric longitudes, the varga changes and the daśā displacement.

Osculating (true) node. The node is taken from the instantaneous orbit of the Moon: the node of the plane of r × v of the geocentric lunar state (osculating.rs), so it includes the ±1.6° oscillation about the mean node and has its own daily speed (sometimes direct). The mean node (Classic) is the smooth −0.0529°/day regression. Ketu is Rāhu + 180° in both. Differences between the two nodes reach about 1.6° and flip the node’s nakṣatra pada fairly often.

14 · Prediction layer, eclipses and graha-yuddha

ItemDefinition
Heat-map «भविष्यफल»§8: domain z-scores over the horizon (3, 5 or 10 years, 30-day steps) from Kāla Resonance; spans of ≥ +0.5σ / ≤ −0.5σ; cell click shows the daśā chain, domain score, opportunity vs resistance and the planets that contributed most. Decision-support, not prediction.
Eclipse listOnly eclipses that are visible at the place or touch a natal nakṣatra/rāśi/lagna-rāśi or a natal point within 5° (conjunction or axis); penumbral-only eclipses are left out. Local circumstances from the Besselian elements.
Sūtak and vedhaSūtak = from the first moment the eclipse is seen from the place (first contact if the body is up; otherwise the rise of the body, found by a 2-minute scan) to moksha (last contact). Vedha = the 4 prahara (solar) / 3 prahara (lunar) before it, ending at that first-seen moment. Penumbral lunar eclipses and eclipses not visible at the place have neither.
Graha-yuddhaTwo of Mercury, Venus, Mars, Jupiter, Saturn with ecliptic longitudes equal and a latitude gap < 1°. The physical class (bheda / ullekha / aṃśumardana / apasavya) uses the topocentric minimum separation against the discs’ radii (+ a 60″ halo for aṃśumardana); the Sun and Moon are excluded. Winner is shown by three criteria separately — the more northern latitude, the brighter (standard phase-law magnitudes, Saturn including ring tilt) and the larger disc; the northern rule is shown as the principal one and the page states when the criteria disagree. Schools differ; none is declared definitive.
3-D viewer (Panchāṅga page)Runs TKS-EPH-2 in the browser (WebAssembly), free range 1950–2050; planets and discs are drawn at exaggerated size (factor printed). Not used for any number on this page.

15 · Western astrology (beta)

The Western profile is a separate system, not the Vedic chart re-labelled. It uses the engine with ayanamsa=tropical (the sāyana zodiac: no ayanāṃśa), the geocentric Moon and the true (osculating) node, the same TKS-EPH-2 apparent places, and the same RAMC / true obliquity as the KP block. Whole page is switched to English.

ItemDefinition
HousesPlacidus (as §7/§12; the page also offers Equal from the Ascendant and Whole-sign); beyond the polar circles (|φ| ≥ 66°) it falls back to Equal and says so.
PointsSun … Pluto, true North/South Node, Lilith = mean lunar apogee (Meeus mean perigee + 180°), Ascendant, Midheaven. Chiron and asteroids are not included.
Dignityclassical domicile / exaltation / detriment / fall; Uranus, Neptune, Pluto shown as modern rulers of Aquarius, Pisces, Scorpio.
Aspectsconjunction 8°, opposition 8°, trine 8°, square 7°, sextile 5° (minor: quincunx 3°, semi-sextile / semi-square / sesquiquadrate 2°); orbs ×1.25 when the Sun or Moon is involved, ×0.7 for points; minors only between planets. Applying/separating from the relative speed. The orb table is returned by the API (western.orbs).
PatternsGrand Trine, T-Square, Yod, Stellium (≥ 3 of the ten planets within 10°); computed from the aspect set above.
Balanceelement (Fire/Earth/Air/Water) and modality weights: Sun, Moon, Asc 3 · Mercury, Venus, Mars, MC 2 · Jupiter, Saturn 1.5 · outer planets 1.
Part of Fortuneday chart (Sun above the horizon) Asc + Moon − Sun; night chart Asc + Sun − Moon.
Transits & progressions (today)transiting planets' aspects to natal points within 2° (Moon 1°); secondary progressions “a day for a year”, with progressed aspects within 1°.
Forecast (12 months)Mars, Jupiter, Saturn, Uranus, Neptune, Pluto against the ten natal planets and Asc/MC: exact passes by bisection on the apparent longitudes (retrograde re-passes listed), weekly activity = Σ weight·(1 − orb/2.5°)², hard (conjunction, square, opposition) vs soft (trine, sextile). Weights: transiter Mars 1.5, Jupiter 3, Saturn 5, Uranus 4, Neptune 3, Pluto 5; natal Sun/Moon/Asc/MC 1, personal planets 0.8, Jupiter/Saturn 0.6, outer 0.4. Annual profection (Hellenistic, whole-sign: Ascendant sign + age; Lord of the Year = traditional ruler); solar return (Sun's return to its natal longitude, Placidus chart at the birth place); life-cycle returns (Jupiter ≈ 12 y, Saturn ≈ 29.5 y, Uranus opposition ≈ 42 y) with every retrograde pass. The “theme” text is assembled from keyword tables for the planet and the natal point, not from the chart; it is a calendar of activation, not a prediction.

Verification against the Swiss Ephemeris

scripts/verify/verify_western.py compares 14 births (1850–2100, latitudes −34°…+60°) with pyswisseph 2.10.03: planets ≤ 1.9″ (Moon ≤ 0.5″ in 1950–2050, 4″ at 2100 where ΔT is extrapolated), Ascendant 1.8″, MC 2.1″, Placidus cusps ≤ 2.2″, Part of Fortune ≤ 2.3″; true node 13.5″ (two different osculating conventions); the aspect lists agree in 12 of 14 charts; the other two differ by one pair each, both involving Lilith. Mean Lilith differs by up to ≈ 7′: TKS uses the pure Meeus mean apogee, Swiss its own series — a convention difference. Details in docs/tks-range-audit.md.

16 · Numerology (beta)

Pure arithmetic on the date of birth and the name — no ephemeris is involved. All figures are computed in the browser; the definitions are listed so they can be audited.

NumberDefinition
Life PathPythagorean method: month, day and year are each reduced (keeping 11, 22, 33), the three are added and reduced again (masters kept). Intermediate totals 13, 14, 16, 19 are flagged as karmic-debt numbers.
Birthday · Attitudeday of month reduced (masters kept) · day + month reduced to one digit.
Expression (Destiny) · Soul Urge · PersonalityPythagorean letters (A J S = 1 … I R = 9): all letters · vowels (A E I O U, and Y only when it has no vowel next to it) · consonants; each reduced with masters kept. Maturity = Life Path + Expression; Balance = the initials.
Hidden passion · missing numbersthe most frequent / absent Pythagorean letter values in the name.
Pinnacles & challengesP1 = month + day, P2 = day + year, P3 = P1 + P2, P4 = month + year (masters kept); the first pinnacle ends at 36 − Life Path (11 → 2, 22 → 4, 33 → 6) and the next two last 9 years each. Challenges: |month − day|, |day − year|, |C1 − C2|, |month − year| of the one-digit reductions.
Personal Year / Month / DayPersonal Year = birth month + birth day + the year, each reduced to one digit; Personal Month = Personal Year + calendar month; Personal Day = Personal Month + day. The nine-year table repeats the rule for the next nine calendar years.
Mulank · Bhagyank · NamankIndian (Ank Jyotish): Mulank = day of month to one digit; Bhagyank = every digit of the full date added to one digit; Namank = Chaldean letter values (A I J Q Y 1 · B K R 2 · C G L S 3 · D M T 4 · E H N X 5 · U V W 6 · O Z 7 · F P 8) reduced to one digit. Ruling planets, days, gems, metals and colours are the traditional associations, listed as such.
Lo Shu gridthe digits of the date of birth (zeros dropped) plus Mulank and Bhagyank, placed on the 4-9-2 / 3-5-7 / 8-1-6 magic square; rows (mental, emotional, practical) and columns (thought, will, action) are reported complete / partly present / empty.

Everything is symbolic: the numbers are exact, their meanings are traditional, and none of it has been tested as prediction. Cross-checks with a second implementation have not been done yet (open item): known worked examples — 1985-06-15 → Life Path 8, “John Smith” → Expression 8, Soul Urge 6, Personality 11 — were used as unit checks.

17 · Tajika — annual astrology (beta)

The Tajika profile builds the varṣaphala chart on the same engine: the sidereal Sun-return is solved on the TKS Sun in the profile's ayanāṃśa (the bisection stops at 1″), the return chart is a complete TKS snapshot at that instant at the birth place, and everything else is a function of that chart and the natal lagna.

ItemDefinition
Varṣa Praveśathe instant the Sun returns to its natal sidereal longitude in the chosen year; local date and time at the birth place.
Muntha · Muntheśanatal lagna sign + completed years (mod 12); its lord and house in the varṣa chart. A house list (1, 2, 3, 5, 6, 9, 10, 11 favourable; 4, 7, 8, 12 difficult) gives the traditional tone.
Year lordNīlakaṇṭhī Pañcādhikārī: day/night lord, varṣa-lagna lord, Muntheśa, natal-lagna lord and tri-rāśi lord, scored by dignity and house; the highest score is the Varṣeśa.
Tajika aspectsby sign: conjunction; sextile and trine = friendly; square and opposition = inimical. Aspect set per the standard Tājika convention (also 2nd/12th, neutral). Dīptāṃśa: Sun 15°, Moon 12°, Mars 8°, Mercury 7°, Jupiter 9°, Venus 7°, Saturn 9°; each planet must lie inside the other's full window.
Ithasala · Isaraphaan aspecting pair inside the mutual window: applying (faster planet less advanced in its sign) is Ithasala, separating is Isarapha; gap ≤ 1° is Purna, both inside the window Vartamana, one inside and the other within 1° Bhavishya. Nakta / Yamaya: a carrier in Ithasala with two planets that do not aspect each other, less / more advanced in its sign than both. Kamboola: the Moon is in Ithasala with a planet (chain continues through that planet's Ithasala partners). Ishkavala / Induvara by occupied houses.
Sahams30 rows of the Tajika Nīlakaṇṭhī table, A − B + C with day/night reversal; +30° when the correction point is not on the arc from B to A (standard convention: the point is C, but the Lagna for Śāstra, Kāryasiddhi, Santāpa and Prīti).
Mudda daśāthe year divided in Vimśottarī proportion from the varṣa Moon.
Annual readinga transparent sum of listed factors (Muntha house, benefics/malefics with Muntha and lagna, dignity and house of the year lord and Muntheśa, applying vs separating links, Ishkavala/Induvara) and the houses where the chart concentrates. It indicates tone and emphasis, not events, and has not been validated against outcomes.

Cross-check with an independent implementation (scripts/verify/verify_tajika.py, 10 births): return instant within 0.3 min, varṣa lagna within 0.07°, Muntha sign 10/10, all 30 sahams within 0.03° when the independent implementation is evaluated at the TKS return instant. All Ithasala pairs agree in 10 of 10 charts. The year lord differs because the two programs use different published rule sets (see docs/tks-range-audit.md).

Related: Ayanāṃśa comparison · API reference · Validation · Research notes.

संस्करणः bin-1795527110