pygmt.datasets.load_usgs_quakes

pygmt.datasets.load_usgs_quakes()[source]

Load a table of global earthquakes form the USGS as a pandas.Dataframe.

This is the @usgs_quakes_22.txt dataset used in the GMT tutorials.

The data are downloaded to a cache directory (usually ~/.gmt/cache) the first time you invoke this function. Afterwards, it will load the data from the cache. So you’ll need an internet connection the first time around.

Returns

data (pandas.Dataframe) – The data table. Use print(data.describe()) to see the available columns.