自1900年以来地震目录的所有重要吗?- 江南体育网页版- - - - -地球科学堆江南电子竞技平台栈交换 最近30从www.hoelymoley.com 2023 - 07 - 10 - t01:42:40z //www.hoelymoley.com/feeds/question/14372 https://creativecommons.org/licenses/by-sa/4.0/rdf //www.hoelymoley.com/q/14372 4 自1900年以来地震目录的所有重要吗? 埃塞俄比亚 //www.hoelymoley.com/users/13121 2018 - 06 - 07 - t11:31:55z 2018 - 06 - 07 - t15:16:34z < p >我在哪里可以找到一个列表的所有自1900年以来,地球上发生了地震?< br / >我需要时间,经度/纬度和权力——最好是在. csv格式。< / p > //www.hoelymoley.com/questions/14372/catalog-of-all-significant-earthquakes-since-1900/14373 # 14373 6 答案由埃塞俄比亚自1900年以来所有重要的地震目录吗? 埃塞俄比亚 //www.hoelymoley.com/users/13121 2018 - 06 - 07 - t14:27:01z 2018 - 06 - 07 - t14:27:01z < p >好的,我得到了数据从< a href = " https://earthquake.usgs.gov " rel = " noreferrer " > https://earthquake.usgs.gov < / > < / p > < p >自网站只允许得到20 k记录一次我犯了一个小python脚本为每个月下载数据。

import os import requests for x in range(1900,2016): for y in range(1,13): url='https://earthquake.usgs.gov/fdsnws/event/1/query.csv?starttime='+str(x)+'-'+str(y)+'-31%2023:59:59&endtime='+str(x)+'-'+ str(y+1) +'-31%2023:59:59&minmagnitude=2.5&orderby=time' print(url) response = requests.get(url) with open(os.path.join("C:/Users/kristjag/OneDrive/delo/potresi", "potresi_"+str(x)+"_"+str(y)+".csv"), 'wb') as f: f.write(response.content) 

Code above take some time to finish but when completed you get earthquake data for every month from 1900-2016

Baidu
map