astrorigin / pyswisseph

Python extension to the Swiss Ephemeris
https://astrorigin.com/pyswisseph
GNU Affero General Public License v3.0
239 stars 65 forks source link

How can I determine or estimate when Aspect starts and ends #60

Open jeferson-sb opened 2 years ago

jeferson-sb commented 2 years ago

Hi folks,

I'm working on implementing a Transits chart and I need to list aspects for planets in a particular day. I'm able to determine the aspect between two bodies with swe_calc_ut successfully but I cannot estimate how long that aspect will occur. So I need to represent the two dates where that aspect will stay, for example

Sun opposition Mars  ✔️
20 Oct - 01 Nov

I know there is the next_aspect_with method under the contrib module but it can only display the future dates of that same aspect.

@astrorigin

jeferson-sb commented 1 year ago

bump

NodBr commented 6 months ago

I may have an idea using to loops. For sake of simplicity, I will call:

Start date:

End date:

Depending on your project, after knowing the date, you may go deeper to find the hour using the same idea

jeferson-sb commented 6 months ago

@NodBr Yeah, I did something similar to this in our project, thanks for the response anyways.