yantra/patha/utsava.js
उत्सव: saṅkrānti, ṛtu, saura-nakṣatra, ayana and the festival days (Phase B, STEP 3a).
476 lines · 0 exports
The header, as the file states it
What it loads
- yantra/patha/panchanga.jsmodule
- yantra/patha/sphuta.jsmodule
- yantra/patha/dhruva.jsmodule
- yantra/patha/kala-dvara.jsmodule
- yantra/patha/ss-udaya.jsmodule
What it exports
SS verses named in the header
- SS 2.64versebhabhogo aṣṭaśatīliptāḥ khāśviśailāstathā titheḥ । grahaliptābhabhogāptā bhāni bhuktyā dinādikam ।।
- SS 3.9versetriṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
- SS 10.1verseudayāstavidhiḥ prāgvatkartavyaḥ śītagorapi । bhāgairdvādaśabhiḥ paścāddṛśyaḥ prāgyātyadṛśyatām ।।
- SS 10.2verseravīndvoḥ ṣaḍbhayutayoḥ prāgvallagnāntarāsavaḥ । ekarāśau ravīndvośca kāryā vivaraliptikāḥ ।।
- SS 10.3versetannāḍikāhate bhuktī ravīndvoḥ ṣaṣṭibhājite । tatphalānvitayorbhūyaḥ kartavyā vivarāsavaḥ ।।
- SS 10.4verseevaṃ yāvatsthirībhūtā ravīndvorantarāsavaḥ । taiḥ prāṇairastametīnduḥ śukle arkāstamayātparam ।।
- SS 10.5versebhagaṇārdhaṃ raverdattvā kāryāstadvivarāsavaḥ । taiḥ prāṇaiḥ kṛṣṇapakṣe tu śītāṃśurudayaṃ vrajet ।।
- SS 10.6versearkendvoḥ krāntiviśleṣo diksāmye yutiranyathā । tajjyendurarkādyatrāsau vijñeyā dakṣiṇottarā ।।
- SS 10.7versemadhyāhnenduprabhākarṇasaṅguṇā yadi sottarā । tadārkaghnākṣajīvāyāṃ śodhyā yojyā ca dakṣiṇā ।।
- SS 10.8verseśeṣaṃ lambajyayā bhaktaṃ labdho bāhuḥ svadiṅmukhaḥ । koṭiḥ śaṅkustayorvargayutermūlaṃ śrutirbhavet ।।
- SS 10.9versesūryonaśītagorliptāḥ śuklaṃ navaśatoddhṛtāḥ । candrabimbāṅgulābhyastaṃ hṛtaṃ dvādaśabhiḥ sphuṭam ।।
- SS 10.10versedattvārkasaṃjñitaṃ binduṃ tato bāhuṃ svadiṅmukham । tataḥ paścānmukhī koṭiṃ karṇaṃ koṭyagramadhyagam ।।
The channels it runs in
Every function, what it calls, who calls it
25 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.
── SS 4.1-4.3 and 14.11 ─────────────────────────────────────────────────────────────────────────
The Sun's disc in minutes of arc: 6500 × true/mean motion × Sun revolutions ÷ Moon revolutions ÷ 15 (SS 4.1-4.3).
The Moon's disc in minutes of arc: 480 × true/mean motion ÷ 15 (SS 4.1-4.3).
SS 14.11: the puṇya time of a saṅkrānti at t — the disc's crossing of the boundary, half before and half after.
Every saṅkrānti in [t1, t2) with its class and its puṇya time.
Instant in [t1, t2) when the Sun's sidereal longitude reaches L (degrees); all of them.
SS 14.6: the pitṛ days, the Sun from Kanyā 14° to Tulā 0°.
U4: Saura nakshatras — the true sidereal Sun reaching k x 13 deg 20' (k x 800', k = 0..26).
The ayanas and viṣuvas in the sky: the Sun's sāyana longitude at 270°, 90°, 0°, 180° on the calendar's own ayanāṃśa (U5).
U5: Both ayanas side by side — (a) SS 14.9 Makara and Karka sankrantis, and (b) the sky's sayana 270° and 90° (with vishuvas).
── the day's kāla windows [unverified] ─────────────────────────────────────────────────────────
Rising ("rise") or setting ("set") of the Moon's centre between sunrise of day N and the next sunrise (null if it does not happen in that civil day): geometric, no parallax (SS ch.5 lambana not applied), no refraction. The first crossing of the horizon upward (rise) or downward (set) in the day.
Moonrise in civil day N (sunrise to the next sunrise), or null.
Moonset in civil day N (sunrise to the next sunrise), or null.
SS 10.1-10.4: candra-darśana after each amāvāsyā in [t1, t2) — the first evening the Moon is seen (≥ 12 kālāṃśa between the settings of Sun and Moon, the Moon's place carried by 7.8-7.10 to the ecliptic point setting with it), its moonset after sunset by 10.3-10.4, and the kālāṃśa of each evening tried. Positions are the pañcāṅga's own (sidereal) made tropical with its ayanāṃśa (3.10); the evening
The span of tithi `idx` (1…30) in the month that starts at the new moon `monthStart`.
The civil day on which a tithi-rule falls, its window, and the part of the window free of the avoided karaṇa.
Festivals between t1 and t2 (Kali days) at the site. Each result names its rule, day and window; status unverified.