compute_natal_chart
Compute a natal astrological chart for a given time and location. Returns JSON with each body's longitude, latitude, speed, sign, house, dignity and retrograde flag, the house cusps with ascendant and MC, the aspects, and the ayanamsha applied. Pass a sidereal ayanamsha for a Vedic chart (kundali); the default is tropical. To get a property graph, pass this output to emit_graph.
5 parameters ▾
ayanamsha?stringSidereal zodiac system. Eleven systems, each derived forward from a primary source and none tuned to match another implementation. The chart's true_ayanamsha_value output field reports the TRUE ayanamsha (mean plus nutation in longitude) already applied — nutation is included, do not add it yourself. Pass Tropical for no rotation. Systems: IndianOfficial = Indian Astronomical Ephemeris 2022, AYANAMSA section: 23 deg 51 min 25.53 sec at J2000.0, propagated by P03 general precession | FaganBradley = Fagan & Firebrace, Primer of Sidereal Astrology: synetic vernal point 335 deg 57 min 28.64 sec at B1950.0, ayanamsha = 360 deg minus SVP | Krishnamurti = Krishnamurti Padhdhati Vol-I: 22 deg 22 min 00 sec on the 1st of Chitra 1900, propagated at KSK's stated 50.2388475 arcsec/yr | Raman = Raman, A Manual of Hindu Astrology (1935), Ch. III Art. 49 | SuryaSiddhanta = Surya Siddhanta Ch. 3 vv. 9-12 | Yukteshwar = Yukteswar, The Holy Science (1894) | RevatiPaksha [star] = Revati at the sidereal initial point, the majority reading against Surya Siddhanta Ch. 8's own 359 deg 50 min, zeta Piscium per Hipparcos | PushyaPaksha [star] = Narasimha Rao, Introducing Pushya-paksha Ayanamsa | TrueChitra [star] = Self-describing condition; Spica per Hipparcos | ChandraHari [star] = Chandra Hari, Indian J. History of Science 33(4), 1998 | GalacticCenter0Sag [star] = Self-describing condition; Sgr A* per Gordon, de Witt & Jacobs (2023), AJ 165, 49.house_system?stringHouse system: Placidus, Koch, Equal, WholeSign, etc.julian_daynumberJulian Day number in UT1 (Universal Time) — not TT, not TDB. The engine converts to TT internally for the dynamical terms (planetary positions, nutation, obliquity) and evaluates the Earth-rotation term — sidereal time, and hence the ascendant, the MC and all twelve house cusps — at this UT1 value directly. Supplying a TDB Julian Day rotates every cusp by 0.289° (17.3') at today's ΔT ≈ 69 s.latitudenumberGeographic latitude in degrees [-90, +90]longitudenumberGeographic longitude in degrees [-180, +180], east positiveOutput schema
{
"properties": {
"aspects": {
"items": {
"properties": {
"applying": {
"description": "True when the aspect is closing rather than separating.",
"type": "boolean"
},
"body1": {
"description": "Index of the first body in the planets array.",
"type": "integer"
},
"body2": {
"description": "Index of the second body.",
"type": "integer"
},
"orb": {
"description": "Orb in degrees.",
"type": "number"
},
"strength": {
"description": "Normalised strength in [0, 1], 1 at exact.",
"type": "number"
},
"type": {
"description": "Aspect name.",
"type": "string"
}
},
"required": [
"body1",
"body2",
"type",
"orb"
],
"type": "object"
},
"type": "array"
},
"config_summary": {
"description": "One-line record of the ephemeris, house system and ayanamsha used.",
"type": "string"
},
"houses": {
"properties": {
"asc": {
"description": "Ascendant longitude in degrees.",
"type": "number"
},
"cusps": {
"description": "Twelve cusp longitudes.",
"items": {
"description": "Cusp longitude in degrees.",
"type": "number"
},
"type": "array"
},
"mc": {
"description": "Midheaven longitude in degrees.",
"type": "number"
},
"polar_fallback": {
"description": "True when the requested system was undefined at this latitude and a fallback was used.",
"type": "boolean"
},
"system": {
"description": "House system used.",
"type": "string"
}
},
"required": [
"system",
"asc",
"mc",
"cusps"
],
"type": "object"
},
"julian_day": {
"description": "The Julian Day the chart was cast for, echoed back.",
"type": "number"
},
"planets": {
"description": "One entry per computed body.",
"items": {
"properties": {
"dignity": {
"description": "Dignity in the occupied sign, e.g. Exalted, Own, Debilitated, Neutral.",
"type": "string"
},
"distance": {
"description": "Distance from the observer in AU.",
"type": "number"
},
"house": {
"description": "Bhava occupied, 1-12.",
"type": "integer"
},
"latitude": {
"description": "Ecliptic latitude in degrees.",
"type": "number"
},
"longitude": {
"description": "Sidereal longitude in degrees [0, 360).",
"type": "number"
},
"name": {
"description": "Graha name.",
"type": "string"
},
"retrograde": {
"description": "True when speed is negative.",
"type": "boolean"
},
"sign": {
"description": "Rashi name.",
"type": "string"
},
"sign_index": {
"description": "Rashi index, 0=Aries … 11=Pisces.",
"type": "integer"
},
"speed": {
"description": "Daily motion in degrees per day, negative when retrograde.",
"type": "number"
}
},
"required": [
"name",
"longitude",
"sign_index",
"house"
],
"type": "object"
},
"type": "array"
},
"true_ayanamsha_value": {
"description": "True ayanamsha (mean plus nutation in longitude) applied, in degrees. Zero for a tropical chart.",
"type": "number"
}
},
"required": [
"julian_day",
"planets",
"houses",
"aspects"
],
"type": "object"
}