THRASTRO/astro.js

Eclipse

Closed this issue · 3 comments

Don't know where and how to put it, so straight and simple:

Will this library help me to simulate the eclipse next month over a THREE.js sphere with a unit radius?

If you have current enough kepler elements of the moon and earth you can calculate exact enough cartesian coordinates with this library. With that you could probably do what you want. To get those Kepler elements you may use http://github.com/mgreter/ephem.js (vsop for earth and elp for the moon).

Basically seems to be something i did at http://ocbnet.ch/solsys-preview-15 with the mentioned libs.

Forgot to mention that you'll also need accurate rotation model for earths equatorial reference frame (eg. https://github.com/mgreter/sofa.js/blob/develop/docs/iau.era00.md). For eclipses in the future you'd also need a correct precession and nutation model.