Moon phase - time finder #774
-
Hello ,
I was searching for finding the time at which a specific moonphase will occur and i got this https://rhodesmill.org/skyfield/searches.html, i am not really sure how would i combine that here to find the time at which some of the moon phase occur, ex: at what time, the moon phase would be at 20 /40/60 degrees. It seems that i cannot send a list of dates to the function |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Any help on this would be appreciated |
Beta Was this translation helpful? Give feedback.
-
@brandon-rhodes any help on this? i dont see to find a way to get out of this |
Beta Was this translation helpful? Give feedback.
-
Try building a function that, instead of returning just https://github.com/skyfielders/python-skyfield/blob/master/skyfield/almanac.py#L59 Do you think the documentation at https://rhodesmill.org/skyfield/searches.html needs to be expanded to explain this approach? |
Beta Was this translation helpful? Give feedback.
Try building a function that, instead of returning just
True
andFalse
, returns an integer0
or1
or2
… depending on whether the angle is between 0° and 20°, or 20° and 40°, or 40° and 60°, and so forth. If you look at Skyfield'salmanac.py
, you'll see examples likeseasons()
andmoon_phases()
that use that approach:https://github.com/skyfielders/python-skyfield/blob/master/skyfield/almanac.py#L59
Do you think the documentation at https://rhodesmill.org/skyfield/searches.html needs to be expanded to explain this approach?