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

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

Open
jeferson-sb opened this issue Nov 7, 2022 · 3 comments
Open

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

jeferson-sb opened this issue Nov 7, 2022 · 3 comments

Comments

@jeferson-sb
Copy link

jeferson-sb commented Nov 7, 2022

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
Copy link
Author

bump

@NodBr
Copy link

NodBr commented Apr 25, 2024

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

  • D+0 is the day you're interested in
  • D+1, D+2, etc are the following days
  • D-1, D-2, etc are the previous days.

Start date:

  • Create a new chart with the date D-1;
  • Check If the aspect is still there;
  • If it's not, you know it started today;
  • If it's there, check D-2, D-3, etc

End date:

  • Do the same but going forward;
  • D+1, D+2, D+3, etc.
  • When it's not there anymore, you know it ended

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

@jeferson-sb
Copy link
Author

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

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

No branches or pull requests

2 participants