Giter Club home page Giter Club logo

volcanoes-in-the-united-states's Introduction

Volcanoes in the United States

With help of Python and Folium, visualise active Volcanoes in the United States. Also, create a choropleth map to demonstrate unemployment rate in the same country.

1. Installing dependencies

Installing dependencies is the first thing you want to do.

#Library Management Package
sudo apt install python3-pip

#Library
pip install folium

2. Understanding files in the directory

Data

  1. Volcanoes_USA.txt
  2. us-states.json
  3. us-unemployment.csv

Step by Step Solution

I have created different files for each step in creating the interactive dictionary, here's the description of what each file does.

  • geo1.py

    • Create a base map usinf folium.Map
  • geo2.py

    • Add a single marker using folium.Marker
  • geo3.py

    • Add multiple markers with help of 'for' loop
  • geo4.py

    • Load Data and use that data to plot markers
  • geo5.py

    • Add colors according to elevation of the Volcanoes
  • geo6.py

    • Change icons of markers to circular
  • geo7.py

    • Use MarkerCluster() to cluster all markers according to zoom levels
  • geo8_choropleth.py

    • The code for the choropleth map (US unemployment rate in %)

Note: All files are integrated with comments to help you understand each and every line/command of the code.

Run All Together

The file geo7.py is the final file. Execute the file and refresh.re-open the map to see the changes.

python3 geo7.py

License

This project is licensed under the MIT License - see the LICENSE file for details

volcanoes-in-the-united-states's People

Contributors

dhrumilcse avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.