brandon-rhodes / pyephem

Scientific-grade astronomy routines for Python
Other
781 stars 121 forks source link

Can predict elevation; how about azimuth too? #205

Open jidanni opened 3 years ago

jidanni commented 3 years ago

In ephem/doc/.rst we see we can adjust .horizonto figure out when the e.g., Sun will reach a given elevation.

Perhaps add an example of how to figure out when the Sun will cross a certain azimuth.

Yes, transit will find it for the current meridian. But that is just a special north south case of a more general case. Please add examples.

brandon-rhodes commented 2 years ago

(I’ve been leaving this issue open in case any contributors have time to either write up a general-purpose guide to how to find astronomical circumstances, using maybe bisection, or Newton’s Method, or else decide to try tackling your specific case and writing an azimuth-finder for you. As we have only been hearing crickets, it may be that we have no volunteers who are interested. We can keep the issue open for a bit while longer to see, though!)

drbitboy commented 2 years ago

I'm interested, but it may not get to the top of my queue.