Skip to content

Queries USGS Earthquake data and lists events sorted by increasing distance from specified long/lat

Notifications You must be signed in to change notification settings

mikeoc61/Seismic-Reporting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seismic-Reporting

Python3 program which queries USGS earthquake historical data and outputs results sorted by distance from a given coordinate. For more info on the data feed, please see: https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php

IP_geo.py contains code to dynamically fetch current location data based on IP lookup

earthquakes.py is the command line version and imports haversine.py and IP_geo.py

earthquakes_gui.py is the GUI version built with Tkinter and relies on output.py. The GUI version is much more powerful as it allows dynamic control of both the sample time interval as well as the sort criteria (Magnitude, Place, Distance)

output.py is imported by earthquakes_gui.py and does the actual output formatting. This module also imports haversine.py and imports IP_geo.py to determine local coordinates based upon IP address lookup from "http://ipinfo.io/json"

The Haversine formula is used to calculate distance relative to starting coordinates

About

Queries USGS Earthquake data and lists events sorted by increasing distance from specified long/lat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages