Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(houses): change calc base into utc to calc base into calendar day #16

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

ryuphi
Copy link
Owner

@ryuphi ryuphi commented Jul 29, 2021

Previously, this implementation was using the recommended methods for
dates based on Coordinated Universal Time (UTC) UTC and Julian day: swe_utc_time_zone(), swe_utc_to_jd(), swe_jdet_to_utc(), swe_jdut1_to_utc().

These functions are recommended more for hours obtained from clock. The problem with them is that for some calculations they deliver differences with other libraries that use swesseph. Due to standardization issues with other libraries and to avoid confusion, it was decided to replace the implementation to be able to use the dates based on the calendar day.

Also, the functions for calculating the position of the planets are also changed in order to use the functions with Ephemeris time (ET) and leave a little more coherence in the calculations and be closer to what other softwares deliver.

For more info see #15

Resolve #15

Previously, this implementation was using the recommended methods for
dates based on Coordinated Universal Time (UTC). These functions are
recommended more for hours obtained from clock. The problem with them
is that for some calculations they deliver differences with other
libraries that use swesseph. Due to standardization issues with other
libraries and to avoid confusion, it was decided to replace the
implementation to be able to use the dates based on the calendar day.
@ryuphi ryuphi self-assigned this Jul 29, 2021
@ryuphi ryuphi added enhancement New feature or request bug Something isn't working labels Jul 29, 2021
@ryuphi ryuphi temporarily deployed to dev-astrology-api July 29, 2021 04:30 Inactive
@ryuphi ryuphi merged commit 064b3cb into master Jul 29, 2021
@ryuphi ryuphi deleted the fix/improve-house-position-calc branch July 29, 2021 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

House calculations and planet longitudes not matching with Swiss Ephemeris
1 participant