भारत · ग्रहगणित
स्थान उज्जयिनी Ujjayinī · change it on a tool⌕ search the कोश ⌘Kप्रहर — · —:—:—ours, from sunriseउज्जयिनी —:—:—UTC + λ/15 h, λ = 75.7682° E (D13)IST Error −26.9 minlocal mean time − IST = 4λ − 330 min (K12)engine 3f94072the site ↗

yantra/patha/utsava.js

उत्सव: saṅkrānti, ṛtu, saura-nakṣatra, ayana and the festival days (Phase B, STEP 3a).

476 lines · 0 exports

प्रमाण: पाठ (SS 2.64, 4.1-3, 10.1-4, 14.3-11) · गणित · दृक् + स्वामी-परम्परा (Pardeep Sehrawat): D16, D23a · इतर (unverified festival rules)
लेख · the header

The header, as the file states it

utsava.js — उत्सव: saṅkrānti, ṛtu, saura-nakṣatra, ayana and the festival days (Phase B, STEP 3a). प्रमाण: पाठ (SS 2.64, 4.1-3, 10.1-4, 14.3-11) · गणित · दृक् + स्वामी-परम्परा (Pardeep Sehrawat): D16, D23a · इतर (unverified festival rules) Sourced in the Sūrya-Siddhānta (local edition, checked against the verse words): 14.3 the solar measure gives the ṣaḍaśītimukhas, the ayanas, the viṣuvas and the saṅkrānti's puṇya time. 14.4-14.6 from Tulā 0°, every 86 solar days (degrees of the Sun) is a ṣaḍaśītimukha: Dhanu 26°, Mīna 22°, Mithuna 18°, Kanyā 14°; 4 × 86 = 344, and the 16 left of the circle are Kanyā 14°-30°, the pitṛ days (14.6). 14.7, 14.9 the two viṣuvas (Meṣa, Tulā) and the two ayanas: uttarāyaṇa from the Makara saṅkrānti, dakṣiṇāyana from Karka. 14.8 the saṅkrānti right after each of those four is a viṣṇupadī [reading of "nairantaryāt": Vṛṣa, Siṃha, Vṛścika, Kumbha]. 14.10 the six ṛtus, two rāśis each counted from Makara ("tataḥ"): Śiśira = Makara+Kumbha, Vasanta = Mīna+Meṣa, Grīṣma = Vṛṣabha+Mithuna, Varṣā = Karka+Siṃha, Śarad = Kanyā+Tulā, Hemanta = Vṛścika+Dhanu. 14.11 puṇya time: the Sun's disc in minutes × 60 ÷ its daily motion = nāḍīs; half before the saṅkrānti, half after. 4.1-4.3 the disc: 6500 yojanas × true/mean motion, carried to the Moon's orbit by the ratio of revolutions, ÷ 15 → minutes. The true motion cancels between 4.2 and 14.11: every saṅkrānti's puṇya time is the same, half of it 6500 × civil days ÷ (Moon revolutions × 10800) = (65/108) × the Moon's sidereal month in days = 16.444 nāḍī. The ayana by the saṅkrānti (14.9 as worded) and the ayana in the sky (the Sun's declination turning, sāyana 270°/90° with the calendar's own ayanāṃśa — D23a udaya-bīja on the served door, SS 3.9-3.12 on the pāṭha sibling) are both given. NOT in any local text — every festival rule below, the five-fold day (prātaḥ, saṅgava, madhyāhna, aparāhṇa, sāyāhna), pradoṣa, niśītha, aruṇodaya, the choice between two days, and the month naming by saṅkrānti. They are common practice as printed pañcāṅgas apply it; each carries status "unverified" until the governing nibandha is in the repository. Candra-darśana (SS 10.1-10.4, with 9.5 and 7.8-7.10): the first evening after amāvāsyā on which Sun and Moon set at least 12 kālāṃśa apart — the text's rule — with the Moon's setting after sunset; ss-udaya.js does the arithmetic. Browser: window.Utsava (needs Panchanga, Sphuta, Dhruva, KalaDvara, SSUdaya); node: module.exports.
आवश्यक · requires

What it loads

required by
निर्यात · exports

What it exports

पाठ · the verses it cites

SS verses named in the header

  • SS 2.64verse
    bhabhogo aṣṭaśatīliptāḥ khāśviśailāstathā titheḥ । grahaliptābhabhogāptā bhāni bhuktyā dinādikam ।।
  • SS 3.9verse
    triṃśatkṛtyo yuge bhānāṃ cakraṃ prākparilambate । tadguṇādbhūdinairbhaktāddyugaṇādyadavāpyate ।।
  • SS 10.1verse
    udayāstavidhiḥ prāgvatkartavyaḥ śītagorapi । bhāgairdvādaśabhiḥ paścāddṛśyaḥ prāgyātyadṛśyatām ।।
  • SS 10.2verse
    ravīndvoḥ ṣaḍbhayutayoḥ prāgvallagnāntarāsavaḥ । ekarāśau ravīndvośca kāryā vivaraliptikāḥ ।।
  • SS 10.3verse
    tannāḍikāhate bhuktī ravīndvoḥ ṣaṣṭibhājite । tatphalānvitayorbhūyaḥ kartavyā vivarāsavaḥ ।।
  • SS 10.4verse
    evaṃ yāvatsthirībhūtā ravīndvorantarāsavaḥ । taiḥ prāṇairastametīnduḥ śukle arkāstamayātparam ।।
  • SS 10.5verse
    bhagaṇārdhaṃ raverdattvā kāryāstadvivarāsavaḥ । taiḥ prāṇaiḥ kṛṣṇapakṣe tu śītāṃśurudayaṃ vrajet ।।
  • SS 10.6verse
    arkendvoḥ krāntiviśleṣo diksāmye yutiranyathā । tajjyendurarkādyatrāsau vijñeyā dakṣiṇottarā ।।
  • SS 10.7verse
    madhyā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.9verse
    sūryonaśītagorliptāḥ śuklaṃ navaśatoddhṛtāḥ । candrabimbāṅgulābhyastaṃ hṛtaṃ dvādaśabhiḥ sphuṭam ।।
  • SS 10.10verse
    dattvārkasaṃjñitaṃ binduṃ tato bāhuṃ svadiṅmukham । tataḥ paścānmukhī koṭiṃ karṇaṃ koṭyagramadhyagam ।।
नलिका · channels

The channels it runs in

कार्य · the functions

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.

mod(a, m)lines 32–32
calls nothing in the registry
wrap180(a)lines 33–33
calls mod
called by build, sunReaches
bhukti(t, body)lines 43–43

── SS 4.1-4.3 and 14.11 ─────────────────────────────────────────────────────────────────────────

calls mod
sunDisc(t)lines 45–45exported

The Sun's disc in minutes of arc: 6500 × true/mean motion × Sun revolutions ÷ Moon revolutions ÷ 15 (SS 4.1-4.3).

calls bhukti
called by build, punyakala
moonDisc(t)lines 47–47exported

The Moon's disc in minutes of arc: 480 × true/mean motion ÷ 15 (SS 4.1-4.3).

calls bhukti
called by build
punyakala(t)lines 49–53exported

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.

called by build, sankrantis
sankrantis(t1, t2)lines 63–65exported

Every saṅkrānti in [t1, t2) with its class and its puṇya time.

calls punyakala
called by build, rtus
sunReaches(L, t1, t2)lines 67–76exported

Instant in [t1, t2) when the Sun's sidereal longitude reaches L (degrees); all of them.

shadashitimukhas(t1, t2)lines 79–83exported
called by build
pitrDays(t1, t2)lines 85–89exported

SS 14.6: the pitṛ days, the Sun from Kanyā 14° to Tulā 0°.

called by build
rtuOfRashi(rashi)lines 99–99exported
calls mod
called by build, rtus
rtus(t1, t2)lines 100–114exported
called by build
saurNakshatras(t1, t2)lines 116–135exported

U4: Saura nakshatras — the true sidereal Sun reaching k x 13 deg 20' (k x 800', k = 0..26).

called by build
cardinalInSky(t1, t2, opts = {})lines 137–137exported

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).

calls nothing in the registry
called by build
ayanas(t1, t2, opts = {})lines 151–151exported

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).

calls nothing in the registry
called by build

── the day's kāla windows [unverified] ─────────────────────────────────────────────────────────

calls nothing in the registry
called by build, dayOfRule

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.

calls nothing in the registry
called by build, moonrise, moonset
moonrise(N, site, opts = {})lines 213–213exported

Moonrise in civil day N (sunrise to the next sunrise), or null.

calls moonEvent
called by build
moonset(N, site, opts = {})lines 215–215exported

Moonset in civil day N (sunrise to the next sunrise), or null.

calls moonEvent
called by nothing in the registry

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

calls nothing in the registry
called by build
tithiSpan(monthStart, idx)lines 370–374exported

The span of tithi `idx` (1…30) in the month that starts at the new moon `monthStart`.

calls nothing in the registry
called by build, dayOfRule
overlap(a, b)lines 375–375
calls nothing in the registry
called by build, dayOfRule

The civil day on which a tithi-rule falls, its window, and the part of the window free of the avoided karaṇa.

festivals(t1, t2, site, opts = {})lines 439–439exported

Festivals between t1 and t2 (Kali days) at the site. Each result names its rule, day and window; status unverified.

calls nothing in the registry
called by build