yantra/patha/ss-drishya.js
दृश्य: when a body is seen. The heliacal rising and setting of the planets and the junction stars
522 lines · 0 exports
The header, as the file states it
What it loads
- yantra/patha/sphuta.jsmodule
- yantra/patha/ss-udaya.jsmodule
- yantra/patha/panchanga.jsmodule
- yantra/patha/utsava.jsmodule
- yantra/patha/kala-dvara.jsmodule
What it exports
SS verses named in the header
none in the registry
The channels it runs in
Every function, what it calls, who calls it
50 top-level functions read from the source; the doc line is the comment above each; calls and callers are resolved across the registry’s modules by name. Line numbers are the file’s at engine 3f94072.
9.6-9.8, 10.1: the kālāṃśa limit of a body in its present motion. For Venus 9.7 names the phenomena (west setting and east rising 8; east setting and west rising 10); by 9.2-9.3 those are the retrograde and the direct pair.
A yogatara.json entry → its dhruvaka in degrees (sidereal, the text's Meṣa 0): 8.1 for a figure, 8.4-8.5 by rule, or a named star's degree (8.10-8.12). null where the catalogue gives none.
The catalogue (yogatara.json) → [{ name, dhruvaka, vikshepa, kalamsa }] for every star with a place and a kālāṃśa.
── the arithmetic of 9.5, 9.10, 9.11, 9.16 ─────────────────────────────────────────────────────────
9.5: the signed kālāṃśa of a point from the Sun on one horizon. East: asus from the point's rising to the Sun's (positive when it rises first). West: from the Sun's setting to the point's, both advanced six signs (positive when it sets after). `rs`: the twelve risings at the place (3.44-3.45).
9.11: kālagati — a daily motion (minutes of arc a day) × the rising asus of the sign of its lagna ÷ 1800: asus a day. The lagna in the west is the point + six signs (9.5).
9.10: days until (positive, gamya) or since (negative, gata) the kālāṃśa `k` reaches `limit`: the difference in kalās ÷ the difference of the two kālagatis — the sum when the body is retrograde, its kālagati being negative.
9.16: kṣetrāṃśa — the dṛśyāṃśa (kālāṃśa) × 1800 ÷ the rising asus of its own sign: the limit as degrees of the ecliptic.
7.8-7.9 at the horizon, ākṣa part only: a junction star's dhruvaka (sāyana) carried to the ecliptic point that rises (east) or sets (west) with it; with `starAyana` the āyana part of 7.10 is added as for a planet.
The default horizon rule (opts.drk): "own" — each body's own declination and cara, its right ascension by 3.42's rule at the point (2.58, 2.61-2.63; 2.63 gives the stars their own day) — or "aksa", 9.5 with 7.8-7.10 as the chapters word it (linear dṛkkarma, risings proportional within a sign). Against the sphere the first is within 0.53 kālāṃśa at |β| = 5° and 0.37 for every junction star at Ujjay
9.11 in the own-horizon rule: a daily motion × the rate at which the body's horizon time moves with its longitude (asus per minute of arc, taken over ±1′) — the same quantity 9.11's "rising asus of the sign ÷ 1800" approximates.
9.2-9.3: the phenomenon a body is heading for. Slow (Jupiter, Mars, Saturn; Venus and Mercury retrograde; stars, 9.17): greater than the Sun → setting in the west, less → rising in the east. Fast (Moon; Venus and Mercury direct): less → setting in the east, greater → rising in the west. `motion: "relative"` calls slow whatever moves slower than the Sun [reading].
3.13-3.14: akṣajyā and lambajyā from the palabhā, over the equinoctial hypotenuse √(144 + palabhā²).
3.34-3.36: the śaṅku (R-sine of the altitude) of a body of declination δ° at hour angle `nataAsus` from the meridian: antyā = R + carajyā; less the versed sine of the hour angle; × dyujyā ÷ R × lambajyā ÷ R.
The hypotenuse of the shadow of the 12-aṅgula gnomon for a śaṅku: 12 R ÷ śaṅku (3.36 "chāyākarṇau pūrvavat").
The Moon's midday shadow hypotenuse: zenith distance at the meridian = akṣa − declination (3.17), its śaṅku the sine of the complement.
this build's own trigonometry for the exact forms (its sine and arc; no other)
The horns exactly (owner, 2026-10-27: "what is perfect for the model"): the position angle χ of the bright limb's middle (from the north, through the east) — the direction of the Sun from the Moon — and the Moon's parallactic angle q (the direction of the zenith); χ − q is the bright limb's angle from the zenith. The horns stand at χ ± 90°: the higher is the one nearer the zenith, and the line thr
10.6-10.14: the horns. opts.method: "sphere" (default when no karṇa rule is named: hornsSphere) or "text" (the figure as written; naming opts.karna chooses it).
10.9, 10.15: the bright part in twelfths of the disc — (Moon − Sun)′ ÷ 900 in the bright half; in the dark half the dark part is (Moon − (Sun + 180°))′ ÷ 900. × the disc in aṅgulas ÷ 12 when `bimbaAngula` is given. Linear in the elongation, by the words.
Sunrise ("rise") or sunset ("set") of civil day N: the true Sun's hour angle — the mean Sun's turn from midnight at the place, with the bhujāntara (mean − true, 2.46) and the udayāntara (the true Sun's sāyana place − its right ascension, 3.42 by the text's sine; owner, 2026-10-28) — equal to minus or plus its half-day (2.61-2.63). `sunrise: "bhujantara"`: the text as written, the bhujāntara alone;
Sunrise and sunset of day N with the Sun's sāyana place and motion at each (9.4).
Visibility of a planet (9.2-9.11) on each morning and evening in [t1, t2), and the days its state changes. bodyAt(t) → { lambda (sidereal degrees), latArcmin (north +), bhukti (minutes a day, negative when retrograde), retrograde? }. opts.planet: "mars" | "jupiter" | "saturn" | "venus" | "mercury" | "moon" (or opts.limits). Each event: side, kind (udaya | asta), the first morning/evening in the ne
A junction star (9.12-9.18): { name, dhruvaka (sidereal degrees), vikshepa (degrees, north +), kalamsa? }. Each morning and evening in [t1, t2): its kālāṃśa from the Sun with the ākṣa dṛkkarma; the heliacal setting in the west (first evening with fewer kālāṃśa than the limit) and rising in the east (first morning with as many); the 9.17 estimate (Sun's kālagati only) from the day before; and wheth
Every star of a list over [t1, t2) with one table of sunrises and sunsets.
The Moon's sāyana place, latitude and both motions at t.
10.5: in the dark half, the asus from sunset to moonrise — from the Sun + half a revolution (the point rising at sunset) to the Moon's eastern dṛk-place — both advanced by their motions for those asus and recomputed until they stop changing (as 10.3-10.4). Within a degree or so of opposition the Moon's dṛk-place can lie behind that point: the asus are then negative, the Moon having risen just befo
The Moon at the text's sunset of day N: in the bright half its setting after sunset (10.2-10.4), in the dark half its rising after sunset (10.5). Times in days since the Kali epoch.
10.1, east ("prāg yāty adṛśyatām"): before each amāvāsyā in [t1, t2), the last morning on which the Moon rises at least 12 kālāṃśa before the Sun, with the mornings tried.
Utsava.candraDarshana (10.1-10.4, west) run on the text's sunset, beside the last morning (10.1, east): for each amāvāsyā, the nights the Moon is unseen.
The horns and the bright part on day N: in the bright half at the text's sunset (the Moon in the west), in the dark half at the text's sunrise (the Moon in the east). The Moon's hour angle for the "tatkala" karṇa: the Sun's (± its half-day) less the difference of right ascensions by the Laṅkā risings of the Sun and of the Moon's polar place (7.10's āyana part).