日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

下载EU台网(欧洲台网)的地震波数据

發布時間:2023/12/18 编程问答 56 如意码农
生活随笔 收集整理的這篇文章主要介紹了 下载EU台网(欧洲台网)的地震波数据 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

retrievedata.py

### here first to check the existence of the focal mechanism event file in the NDK directory,
### if existence, mostly useful for the waveforms inversion,if not,download the event quakeml from
### iris without focal mechanism. Then download the data from IRIS and GFZ, and before run, should
### update the username and password for the restricted data.
### http://geofon.gfz-potsdam.de/waveform/archive/auth/auth-example.php
### wget --post-file /data2/yjgao/token.asc https://geofon.gfz-potsdam.de/fdsnws/dataselect/1/auth -O cred.txt
### Yajian Gao, ,,,GFZ from obspy import read_events
from obspy.clients.fdsn import Client
from obspy import UTCDateTime
import os
import sys
import datetime
import obspy
from pathlib import Path
import os.path
from obspy.clients.fdsn.mass_downloader import CircularDomain, \
Restrictions, MassDownloader
from obspy.clients.seedlink.easyseedlink import create_client
#def handle_data(trace):
#print('Received the following trace:')
#print(trace)
#print()
#client = create_client('geofon.gfz-potsdam.de', on_data=handle_data)
client = Client("IRIS")
if len(sys.argv) != :
sys.exit("Usage: python %s year month day hour:minute:seconds eventid evla evlo"% sys.argv[])
year,month,day,origin,eventid,evla,evlo = sys.argv[:]
hour,minute,second=origin.split(':')
#############################################download quakeml from IRIS without FOCAL MECHANISM EVENTFILENAME='C'+str(year)+str(month)+str(day)+str(hour)+str(minute)+'A.ndk'
PATH="../NDK/"+str(EVENTFILENAME)
print(PATH)
ts=os.path.exists(PATH)
if ts== True:
print(ts)
cat = obspy.read_events("../NDK/"+str(EVENTFILENAME))
print(cat)

cmd,并進入桌面(取決于下載數據的腳本在哪里) ,例:cd C:\Users\Desktop

輸入下載命令:python retrievedata.py 2018 09 28 10:02:45 eventid  evla evlo

總結

以上是生活随笔為你收集整理的下载EU台网(欧洲台网)的地震波数据的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。