Skip to content

Shiny web apps that help plan for the 2024 total solar eclipse in North America and future eclipses worldwide

License

Notifications You must be signed in to change notification settings

benda18/eclipse

Repository files navigation

Eclipse Planning Tool

BACKGROUND

The 2024 total solar eclipse that crossed North America on April 8th was the last chance for many of us to see a total solar eclipse for the next 21 years. NASA estimates that 150 million people lived within 200 miles of totality, 5 times as many people as the 2017 eclipse that also crossed the continental US. Many useful web tools and resources existed leading up to the 2024 event to help plan where and when to go to best see the eclipse. All were useful but few in the way I needed - a simple tool just gave you the basic planning information for a US mailing address - a timeline of the eclipse for that location, whether totality could be seen, etc. So I created the tool that I wanted as a Shiny webapp in R.

PURPOSE/GOALS

To create a simple web-based app useful for evaluating locations for eclipse suitability in advance as well as accessing geographically-specific eclipse timielines. While most people will understand the eclipse to be peaking mid-afternoon, that time could range +/- 90 minutes depending on longitude (x-axis).

A secondary goal of this project was to improve my R programming skills, particularly in communicating better interactively using Shiny and Leaflet.

HOW IT WORKS

2 web apps came out of this project:

  1. April 8, 2024 Total Eclipse Planning Tool: A planning tool for the April 8th, 2024 total solar eclipse that takes almost any US postal address as an input and as an output provides information on whether that location was in the path of totality, how long it would experience totality (if any), the time of the eclipse first and last contact as well as totality (if any), how much of the sun would be eclipsed (< 100% if outside of the path of totality), and finally it would calculate and return the next date that the location would see totality of a total solar eclipse.

  2. Find all eclipses for the next 75 years for a location: A planning tool that uses your current location (calculated using your public ip address) that can tell you the date and time of every single lunar and solar eclipse (partial or total) visibile from your current location basically for the rest of your life (75 years from today). This app is computationally heavy and requires a long time to load results after clicking the "Click to Start" button.

APPENDIX

Web Apps Developed

Sources

Other Useful Links

Special Thanks

  • Reddit users u/danielsixfive and u/QuackingUp23

About

Shiny web apps that help plan for the 2024 total solar eclipse in North America and future eclipses worldwide

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages