compute_bhavas
Calculate the Vedic whole-sign bhava chart from an ascendant longitude, returning house classifications and planets' house placements.
Instructions
Compute the whole-sign bhava (house) chart from an ascendant. In the Vedic whole-sign system the entire sign containing the ascendant is the 1st bhava, the next sign the 2nd, and so on — houses do not have cusps within signs. Returns the sign of each of the twelve bhavas with its kendra / trikona / dusthana / upachaya classification, and optionally places supplied grahas into their bhavas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planets | No | Optional map of graha name to sidereal longitude, e.g. {"Mars": 200.4}. Each is placed into its bhava. | |
| ascendant | Yes | Sidereal longitude of the ascendant [0, 360) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| houses | Yes | Twelve entries in order. | |
| planets | No | Empty unless grahas were supplied. | |
| lagna_sign | Yes | Rashi of the ascendant, 0=Aries … 11=Pisces. |