The United States Geological Survey (USGS) is responsible for providing scientific data about natural hazards, the health of our ecosystems and environment; and the impacts of climate and land-use change. The have some of the top scientists in the world who develop new methods and tools to supply timely, relevant, and useful information about the Earth and its processes.
In this project, I built a set of tools that visualizes USGS earthquake data. They collect a massive amount of data from all over the world each day and a robust set of vizzes help tell important stories from their data collected. Important policy and funding decisions that impact the public's health and safety use this data.
- I created a new GitHub repository for this project called
leaflet-challenge
. - I cloned this new repository to my computer.
- Inside my local git repository, I created a directory for this Leaflet challenge.
- This project utilizes both html and Javascript.
- Pushed the above changes to GitHub.
I selected data collection for the past 30 days on earthquakes with a 1.0+ magnitude.
The USGS provides earthquake data in a number of different formats, updated every 5 minutes atUSGS Geo JSON Feed. When you click on a data set, for example 'All Earthquakes from the Past 30 Days', you will be given a JSON representation of that data. I used the URL of this JSON to pull in the data for my visualization.
I created a map using Leaflet that plots all of the earthquakes from the last 30 days with a magnitude of 1.0+ based on the longitude and latitude of the earthquake.
- The data markers reflect the magnitude of the earthquake in their size and color.
- Earthquakes with lower magnitudes appear smaller and in a blue or green color.
- Earthquakes with higher magnitudes appear larger and in a orange or red color.
- When clicking on a specific earthquake, the following additional information is provided:
- The earthquake's location to the nearest city.
- What time the earthquake occured (with GMT and EDT).
- The magnitude of the earthquake.
- The legends provides a range of magnitude with a color:
The final step was to upload this project to GitHubPages to create a live site.
- Javascript
- HTML
- Json
- Leaflet
- GitHub and GitHub Pages
- Michael R. Davis - Davis1776
- Data Source: United States Geological Survey (USGS)
- JSON documentation was used in collecting the data.
- Leaflet documenation was used in building the map.
- Butler University Data Analytics and Visualization Executive Education program and instructors for assistance.
- Hat tip to Triology Education Services for providing the challenge guidelines.
Michael R. Davis ©️ 2020. All Rights Reserved.