Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eclipses times #237

Open
FTno opened this issue Aug 17, 2018 · 4 comments
Open

Eclipses times #237

FTno opened this issue Aug 17, 2018 · 4 comments
Labels

Comments

@FTno
Copy link
Contributor

FTno commented Aug 17, 2018

The world map was a really nice new feature in the latest version, and if I may propose another new feature, I would like to see times for eclipses (both sun and moon) in the app.

@forrestguice
Copy link
Owner

That would be a really neat feature. I'll look into this.

@xandro0777
Copy link

Doing this "right" is not trivial: for the Sun eclipses the calculation needs to be very exact and the calculation is valid only in one place - thus you could easily miss a sun eclipse 100 miles away.

What would be much easier is is to display the angular difference of sun&moon positions at every full and new moon - and alert the user if it is close enough to value where we could hope for an eclipse somewhere)

@forrestguice
Copy link
Owner

I've looked into this a few times. As noted its not trivial. It involves solving a couple hard problems. First, determining the date an eclipse will occur on, and second, determining the location and shape of the shadow it will cast.

<hand waving>

I think its relatively easy to determine potential eclipse dates using simple brute force. As suggested, the app could compare the angular distance during each eclipse season and flag those days when an eclipse might occur somewhere.

Another approach is to simply look these dates up. Knowledge of the Saros cycle makes them easy to predict, and NASA conveniently publishes a complete list. Its a lot of data (too much), but the app could probably restrict itself to near-future/past. Or the app might try to derive these tables on its own, storing only minimal information about each cycle. This would be arguably way cooler (not to mention more challenging).

The second problem, determining the shape of the shadow, I think is a lot more difficult. It can be done by solving for a series of equations to determine the "Besselian elements" of the eclipse. Trying to understand how these equations work is a headache - not exactly my idea of fun. NASA also publishes these values. Knowing these, its then possible to draw the shadow using our chosen map projection.

</hand waving>

Anyhow, I haven't given up on this feature, but nobody hold their breath..

@xandro0777
Copy link

xandro0777 commented Feb 19, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants