pygmt.datasets.load_usgs_quakes

pygmt.datasets.load_usgs_quakes(**kwargs)[source]

(Deprecated) Load a table of global earthquakes from the USGS as a pandas.DataFrame.

Warning

Deprecated since v0.6.0. This function has been replaced with load_sample_data(name="usgs_quakes") and will be removed in v0.9.0.

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.