usgs地震记录如何下载_用大叶草绘制USGS地震数据

本文介绍了如何下载并利用Python的Folium库来绘制来自USGS的地震记录数据。
摘要由CSDN通过智能技术生成

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对象。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值