docs: note that calculate_planets applies ayanamsa via naive subtraction#9
Open
Hari-Bonda wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a short subsection to the
calculate_planetsexample in the README documenting an observation from external testing: the returned sidereal longitudes matchswe_calc(jd, planet, TROPICAL) − swe_get_ayanamsa(jd)rather than Swiss-Ephemeris'sSEFLG_SIDEREALflag 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_SIDEREALpath viacalc_ut, leveraging the side-effect thatcalculate_planetssets the global sidereal mode (so a subsequentcalc_ut(..., SEFLG_SIDEREAL)returns positions in the expected ayanamsa frame).Scope
Related
Wraps up the investigation in #8.
Test plan