Replies: 1 comment 4 replies
-
Hi again, Jake! About the illuminated fraction, take a look at the object returned by the About libration, no, currently Astronomy Engine does not calculate that. I don't know how to do that yet, but I have added issue #126 as a reminder to research it to determine feasibility. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This great library already calculates the phase of the moon. I was wondering if it might be possible to also calculate the illuminated fraction of the moon, which isn't the same as the phase, due to it being a sphere. Im currently using the code here to get this value, so that I can accurately draw a picture of the moon.
https://github.com/mourner/suncalc/blob/master/suncalc.js#L230
There is another thing that would be useful that I haven't found anywhere. And I am sorry that I dont even know the correct terminology to describe it, so hopefully this makes sense. The moon wobbles slightly, so you can see different parts on different nights. Google calls this "Libration", so I'll go with that. Also, the angle of the terminator with respect to the moon's pole changes. To more accurately draw the moon (as I am trying to do) it would be super helpful if Astronomy Engine could calculate these values.
This may be outside the scope of this library, but I thought I would ask :)
Beta Was this translation helpful? Give feedback.
All reactions