Skip to content

Rays & Lagna rectification

GET /v1/vedic/charts/{id}/rays

7-ray classification — a per-planet score reflecting "exalted quality broadcasting" scaled by the planet's distance from its debilitation point and modified by its dignity multiplier.

Formula:

rays = base_rays × (distance_to_debilitation_deg / 180)
       × strength_multiplier

Where: - base_rays = classical EXALTATION_RAYS table (Sun=10, Moon=9, Mars/Mercury=5, Jupiter=7, Venus=8, Saturn=5). - distance_to_debilitation_deg = shortest ecliptic arc 0..180°. - Multiplier: - Exaltation × 3, Mooltrikona × 2, Own Sign × 1.5 - Great Friend × 4/3, Friend × 6/5, Neutral × 1 - Enemy × 0.5, Great Enemy × 2/5 - Debilitation × 0

{
  "chart_id": "01HKD…",
  "entries": [
    {
      "planet": "sun",
      "base_rays": 10,
      "distance_to_debilitation_deg": 180.0,
      "strength": "exaltation",
      "strength_multiplier": 3.0,
      "rays": 30.0
    },
    "…7 entries"
  ],
  "total": 87.6
}

GET /v1/vedic/charts/{id}/rectify-lagna?step_minutes=<int>

Kunda-Siddhanta lagna rectification: walks the natal lagna ±N minutes at a time until its nakshatra lands in the Janma tara group (1st, 10th, or 19th from Moon's nakshatra). Default step is 10 minutes.

{
  "original_longitude": 145.62,
  "rectified_longitude": 145.78,
  "direction_minutes": 10,
  "moon_nakshatra": "Shravana",
  "rectified_lagna_nakshatra": "Shravana",
  "iterations": 1
}