usgs地震记录如何下载
One of the many services provided by the US Geological Survey (USGS) is the monitoring and tracking of seismological events worldwide. I recently stumbled upon their earthquake datasets provided at the website below.
美国地质调查局(USGS)提供的众多服务之一是对全球地震事件的监视和跟踪。 我最近偶然发现了下面网站提供的地震数据集。
The site has data feeds that contain ‘live’ csv data for every significant earthquake over the past hour, day, week, or month. The data is updated every minute and contains magnitudes, lat/long, depth, and other earthquake descriptors.
该站点的数据源包含过去一小时,一天,一周或一个月中每次重大地震的“实时” csv数据。 数据每分钟更新一次,其中包含震级,纬度/经度,深度和其他地震描述符。
While there are lots of earthquake visualizations out there, I thought it would be a fun exercise to see what could be easily created in Folium from the raw data. For this project, we will be plotting every earthquake worldwide using just Pandas and Folium. We will also add some tectonic plate boundaries with geoJSON just for fun.
尽管那里有很多地震可视化内容,但我认为从原始数据中轻松地在Folium中创建什么内容将是一个有趣的练习。 对于此项目,我们将仅使用熊猫和大叶子绘制全球每次地震的图。 我们还将通过geoJSON添加一些构造板块边界,只是为了好玩。
导入我们的数据 (Importing Our Data)
I will be using the data feed located at the following URL.
我将使用位于以下URL的数据提要。
https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv
https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/2.5_month.csv
That is the direct link to a csv formatted file containing every earthquake greater than magnitude 2.5, worldwide, over the last month. I encourage you to try out the other data feeds, but I found that the size of the dataset really balloons when you include smaller quakes.
这是指向csv格式文件的直接链接,该文件包含最近一个月在世界范围内发生的每一次大于2.5级的地震。 我鼓励您尝试其他数据馈送,但是我发现当包含较小的地震时,数据集的大小实际上会膨胀。
In the code below, we import our libraries, and use the pandas.read_csv() function to create a DataFrame object directly from the URL.
在下面的代码中,我们导入我们的库,并使用pandas.read_csv()函数直接从URL创建一个DataFrame对象。