Comments (3)
This is a nice idea & ties in with the other request. I'm thinking to add a function in the chart class to calculate things like this on the fly, so you'd do something like:
start, end = natal.next_transit(chart.SATURN, chart.PLUTO, calc.CONJUNCTION)
where the first object is from the calling chart (natal Saturn in this case) and the second object is the real-time transiting planet. Optionally it could take a date to start from, and also have a counterpart previous_transit()
function to look back from, so you could check historical transits this way.
It will take some complexity to add in & include things like houses & points etc, but I'm adding it to the ever-growing feature list!
from immanuel-python.
Your idea is great and it does serve for my two suggestions.
I just wonder how to do it, because of the different speeds of each object.
For example: If it's looking for a moon transit, it will have to be hour-specific. But, if you try it on Pluto, even if you try to scan on a yearly basis, it may take very long to find something.
Maybe using different increments per object?
I'll try code something myself. Sure it won't be a professional-level coding, but maybe it can serve as an inspiration for you to polish it and add to the code.
from immanuel-python.
The average daily speeds of the main planets are in the const/calc.py
file which could be a starting point. Things like houses and nodes have a relatively known approximate speed which I could add in somewhere, the only issue I see is with asteroids / fixed stars, although it's probably safe to ignore those for now.
I'd start with getting the current distance between the two points using something like swe.difdegn()
then calculating what size of increment to use based on the speed of the fastest of the 2 objects & the distance between them, and shrink the increment size as they get closer.
It'll be a little while before I can take a proper look at this though so code away!
from immanuel-python.
Related Issues (13)
- Progressed Charts Question HOT 8
- about:natal.ascept HOT 4
- True Lilith: Wierd calculation HOT 2
- Aspect rules for specific objects HOT 3
- Points not working properly HOT 1
- Regarding the issue of calculating differences in house cusps HOT 3
- how to include dignities and scores in natal.objects HOT 2
- Translations HOT 31
- Find Function - Angles and Houses HOT 3
- ηΈδ½ HOT 6
- swisseph.Error: swisseph.calc_ut: SwissEph file 'seas_18.se1' not found in PATH '.:/users/ephe2/:/users/ephe/' HOT 1
- have below picture data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from immanuel-python.