pythoninthegrass / ok_earthquake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Oklahoma Earthquakes

Python project to list and/or visualize locations and details about recent Oklahoma earthquakes using USGS’s Earthquake Catalog (API documentation) or Oklahoma Geological Survey Earthquake Catalog Download Tool

Inspired by Oklahoma Cooling Centers Python Project

Possible dependencies

  • requests
  • pandas
  • folium

First milestone:

  • Grab last 7 30 days of Oklahoma earthquakes as a static csv DONE
    • Chioma
  • Read into pandas DataFrame DONE
    • Ruth/Amanda
  • Clean up
    • Ruth
  • Pipe into folium
    • Crystal
  • Deploy (Netlify? GitHub Pages? Render?)
    • Crystal

Instructions

  • Install Python3
  • Create a virtual environment and install dependencies
    python3 -m venv .venv
    source .venv/bin/activate
    python3 -m pip install -r requirements.txt
  • Run the script
    python3 make_map.py
  • Open the map in your browser
    • macOS
      open ./pages/index.html
    • Windows and Linux
      • Double-click the index.html file in your file manager
  • Deactivate virtual environment
    deactivate

Development

Setup

  • Follow the instructions above to set up your environment
  • Install devbox
    curl -fsSL https://get.jetpack.io/devbox | bash

Usage

  • Basic commands
    # install dependencies
    devbox install
    
    # enter devbox
    devbox shell
    
    # refresh devbox after making changes to devbox.json
    refresh
    
    # deactivate devbox
    exit

About

License:MIT License


Languages

Language:HTML 99.0%Language:Python 1.0%