Skip to content

Group Project on the 2024 Solar Eclipse's Path over the US with an interactive map and a couple of visualizations on the data gathered.

Notifications You must be signed in to change notification settings

vara-co/solar-eclipse-2024

Repository files navigation

DU - University of Denver
Data Analysis & Visualization Bootcamp


Group Project 3:

By M. Aparisio, H. Heer, M. Smith & L. Vara


SolarEclipseThumbImage

Live Interactive Solar Eclipse Analysis website: https://vara-co.github.io/solar-eclipse-2024/

Note: It is important that if you are going to use this code, all files are placed in a directory that matches this repository, for the better functionality of it. Otherwise you would have to adjust the paths on the files, accordingly.

This repository consists of a Team Project were we explore the path of the Solar Eclipse observed on April 8th, 2024 across the United States:

INDEX

  1. Analysis & Slide Presentation
  2. Content of the repository
  3. Instructions for the Project
  4. References

Analysis & Slide Presentation


Content of the repository

  • Resources Directory:

    • Eclipse_Cities_Totality_duration.csv
    • Eclipse_Citites_Totality_duration.json
    • Eclipse_Totality_Averages.csv
  • static Directory:

    • Cities_Outside_Totality.csv
    • Cities_Outside_Totality.geojson <-- Main data file used for the Partial Eclipse locations.
    • Cities_Outisde_Totality.json
    • Cleanning_Ttl_E_duration.ipynb <-- This file helped with calculation on the duration of the Total Eclipse and how many States had Total Eclipse Sightings.
    • Eclipse_Cities_Totality.csv
    • Eclipse_Cities_Totality.geojson <-- Main data file used for the Total Eclipse locations, duration calculations, average total eclipse duration, and percentage of US states that viewed the Total Eclipse vs Partial Eclipse.
    • Eclipse_Cities_Totality.json
    • cleaned_TotalE_Duration.csv
    • cleaned_TotalE_Duration.json
    • cleaned_TotalE_Duration.xlsx
    • eclipse-background-2.png
    • eclipse-background.jpg
    • logic.js <-- This is the main Javascript file that gives functionality to our HTML.
    • style.css <-- This is the css file that styles our HTML.
  • working_files Directory:

    • DurationPlots.js <-- Javascript that contains the Bar Plot, that we later incorporated to the logic.js file.
    • durationIndex.html <-- HTML to test out the Bar Plot from this directory.
  • Eclipse_Totality_Duration_csvtojson.ipynb <-- Jupyter Notebook to extract duration of total eclipse and convert the dataset into CSV and JSON files for availability.

  • index.html <-- This is the main HTML file that contains the code to work in conjunction with the style.css and logic.js files in the 'static' directory.


Instructions

How to use this repository

  1. Click on the link to the live website to access the interactive map and charts.

    • Select the layer of eclipse path you want to view: Partial or Total. Have fun changing the style of the map from street map to topography view. Hover over the markers(circles) on the total eclipse path, to see the city, state, and duration time for that particular marker.
    • Hover over the charts on the live website to discover more information regarding the particular chart.
    • If you missed the eclipse, or want to relive the experience, don't forget to play the bonus video below the charts.
  2. To review our cleaning process, analysis, and the code used to create the interactive website, refer to the files within the repository. The 'Content of the repository' section can guide you through the different files we used and created.

We were given the option to create this project following the Data Visualization Track, or Data Engineering Track. We chose the Visualization track.

Requirements for the Data Visualization Track

  1. The project must include visualizations. We opted for Javascript by using the Plotly and Leaflet libraries.
  2. Data must be stored in and extracted from at least one database. (PostgreSQL, MongoDB, SQLite, etc). We have ours in the Jupyter Notebook files.
  3. The project must include at least one JavaScript or Python library that we did not cover. We used the video.js library to incorporate a relevant video to our project.
  4. The project must be powered by a dataset with at least 100 records. Our datasets are: Cities_Outside_Totality.geojson, and Eclipse_Cities_Totality.geojson
  5. The project must include some level of user-driven interaction, such as:
    • HTML menus, dropdowns, and/or textboxes to display JavaScript-powered visualizations
    • Visualizations created from user-selected filtered data, which could be powered by:
      • JavaScript libraries: We created an interactive map, from which the user can choose to see the path of the Total Eclipse, or the whole area where only Partial Eclipse sightings were recorded. The user can also click on the markers of the Total Eclipse path, and find out what was the duration of the Total Eclipse per each of the cities in relation to the particular marker. The charts also allow the user to hover over, and view more information regarding the information within the charts.
      • Python in Jupyter Notebook
      • Command-line Python scripts that save visualizations locally
  6. If possible, your final visualizatoin should ideally include at least three views.
  7. The GitHub repo must include a ReadMe.md with an outline of the project including:
  • An overview of the project and its purpose
  • Instructions on how to use and interact with the project
  • At least one paragraph summarizing efforts for ethical considerations made in the project
  • References for the data source(s)
  • References for any code used that is not your own

References

References for the data source(s):

References for code:

Image Resources:



About

Group Project on the 2024 Solar Eclipse's Path over the US with an interactive map and a couple of visualizations on the data gathered.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages