Replies: 1 comment
-
|
If you want to know not how illuminated the Moon is (0%–99%), but how far around the sky it is from the Sun, then you can subtract their ecliptic longitudes and get a number of degrees 0°–359.9° where 0° is the moment of New Moon. You can find some example code here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Any return value of moon.phase represents 2 completely different states: the waxing or waning moon. Why this function don't return a unmistakable value? Or is there another return parameter that tells me whether, for example, 0.5 means a waxing or waning half moon? Thanks for any tips!
Beta Was this translation helpful? Give feedback.
All reactions