Skip to content

docs: note that calculate_planets applies ayanamsa via naive subtraction#9

Open
Hari-Bonda wants to merge 1 commit into
fusionstrings:creationfrom
Hari-Bonda:docs/calculate-planets-tt-semantics
Open

docs: note that calculate_planets applies ayanamsa via naive subtraction#9
Hari-Bonda wants to merge 1 commit into
fusionstrings:creationfrom
Hari-Bonda:docs/calculate-planets-tt-semantics

Conversation

@Hari-Bonda
Copy link
Copy Markdown

Summary

Adds a short subsection to the calculate_planets example in the README documenting an observation from external testing: the returned sidereal longitudes match swe_calc(jd, planet, TROPICAL) − swe_get_ayanamsa(jd) rather than Swiss-Ephemeris's SEFLG_SIDEREAL flag path. The two agree to first order but differ by ~3–6″ per planet.

This is the convention most KP / legacy Vedic software uses, so for many readers it's the desired behaviour — the note is just so future users don't have to rediscover this when comparing against other stacks.

The note also shows how to opt into the SEFLG_SIDEREAL path via calc_ut, leveraging the side-effect that calculate_planets sets the global sidereal mode (so a subsequent calc_ut(..., SEFLG_SIDEREAL) returns positions in the expected ayanamsa frame).

Scope

  • README only — no code changes.
  • Strictly the ayanamsa-application observation.
  • Framed as "observations from external testing rather than statements about the library's internals; the maintainer is the authoritative source."

Related

Wraps up the investigation in #8.

Test plan

  • No code changes — README only.
  • Renders correctly on GitHub (verified locally).

Adds a short subsection under "Advanced: Planetary Positions & Dignity"
describing the observed ayanamsa-application behaviour of
`calculate_planets(jd, mode)` and how to opt into the SEFLG_SIDEREAL flag
path via `calc_ut` if needed.

Observations are framed as external testing notes (not statements about
internals). Goal is to help future users who cross-check positions against
KP / Vedic stacks like VedicRishi avoid the ~6″ surprise.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant