skyfielders / python-skyfield

Elegant astronomy for Python
MIT License
1.38k stars 208 forks source link

moon rise and set times #901

Closed heinkurz closed 10 months ago

heinkurz commented 10 months ago

First thanks for Skyfield. Although I'm a newbie I can guess the potential - and the work behind it.

My question: I can't find an example for calculating the moons rise and set times. I can calculate moons Ra and Dec and therefore Alt and Az for a specific date and time and location. Must I iterate over a whole day to get rise and set times?

brandon-rhodes commented 10 months ago

Check out the Risings and Settings documentation:

https://rhodesmill.org/skyfield/almanac.html#risings-and-settings

If there are any questions it leaves unanswered, we can hopefully get it improved — let me know.

heinkurz commented 10 months ago

Oh yes, that's it. How could I miss that? ;-) Thanks.