![]() The source distribution to somewhere in your PYTHONPATH will suffice.There are a few million different versions of Quake: the original DOS Quake (v1.08), WinQuake (v1.09), and GLQuake (v0.97/v1.09). If you don’t want the scripts, copying the quakefeeds directory from (Note that this requires prior installation of Use pip to install the package, its scriptsĪnd their dependencies: pip install quakefeedsĪlternatively, you can install from within the unpacked source distribution: python setup.py install Jinja2 template engine (for map generation) Quakestats, which computes basic statistics for a feed Quakemap, which plots earthquakes on a Google map The installation process will install some scripts in addition to the write_google_map ( "map.html", style = "titled" ) Scripts create_google_map ( style = "titled" ) > feed. event_title ( 0 ) 'M 6.1 - 47km SW of Karpathos, Greece' > feed. utc ) > len ( feed ) 6 > feed # full JSON data for first event in feed > feed. title 'USGS Magnitude 4.5+ Earthquakes, Past Day' > feed. Examples of Use > from quakefeeds import QuakeFeed > feed = QuakeFeed ( "4.5", "day" ) > feed. The data feeds and a description of their GeoJSON format are available at Google map plotting quake locations and magnitudes. The feed and provides other useful methods - e.g. ![]() The class provides some shortcuts for accessing data of interest within The quakefeeds package provides a class QuakeFeed that captures dataįrom a GeoJSON feed, given a valid severity level and time period. Python 3 tools for handling USGS earthquake data feeds.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |