Given a specific coordinate and a specific object, calculate times of conjunction for a given time span #671
Replies: 1 comment
-
|
That's a great question — the almanac module already has a search routine for conjunctions of planets with the Sun: https://rhodesmill.org/skyfield/almanac.html#opposition-and-conjunction It might be a simple adjustment to have a routine that does conjunctions between objects. Then you could give it a planet and, say, a Star object whose RA and Dec were at your coordinate of interest. My guess is that you'll want to dig in and try adapting the Sun-planet routine to look for conjunctions instead with a body the user passes in. Here's the code of the current routine: python-skyfield/skyfield/almanac.py Lines 168 to 189 in 2b3e23d See if you can get it working for something besides the Sun, I'll be interested to hear your results! What kinds of conjunction are you searching for? Knowing a bit more about the problem would help us advise you on the approach. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What I want to do is to specify an object, a coordinate, and a time span and be given back a list of conjunctions within some margin of error of the specified coordinate.
Is there any such high level functionality in Skyfield? Or will I need to dig in?
TIA
Beta Was this translation helpful? Give feedback.
All reactions