[英]Accessing seismographic data via fdsn with obspy (using network, station, location, channel)
我想從 vulcano Tungurahua 周圍地區下載地震數據。 在函數obspy.clients.fdsn的 obspy 文檔中,描述了下載數據的步驟:
from obspy import UTCDateTime
t = UTCDateTime("2010-02-27T06:45:00.000")
st = client.get_waveforms("IU", "ANMO", "00", "LHZ", t, t + 60 * 60)
st.plot()
這里 get_waveforms 方法有參數
使用函數client.get_stations我找到了我感興趣的網絡和站名:
但是我不知道需要傳遞給函數get_waveforms
位置/通道字符串。
我試過的:
client.get_stations(network="YO", station="TBAG")
返回:
Inventory created at 2017-04-23T18:27:16.000000Z
Created by: IRIS WEB SERVICE: fdsnws-station | version: 1.1.25
http://service.iris.edu/fdsnws/station/1/query?station=TBAG&network...
Sending institution: IRIS-DMC (IRIS-DMC)
Contains:
Networks (1):
YO
Stations (1):
YO.TBAG (Banos, Tungurahua, Ecuador)
Channels (0):
所以似乎沒有渠道存在。 但是當嘗試
client.get_stations(network="IU", station="ANMO")
我得到
Inventory created at 2017-04-23T18:40:22.000000Z
Created by: IRIS WEB SERVICE: fdsnws-station | version: 1.1.25
http://service.iris.edu/fdsnws/station/1/query?station=ANMO&network...
Sending institution: IRIS-DMC (IRIS-DMC)
Contains:
Networks (1):
IU
Stations (6):
IU.ANMO (Albuquerque, New Mexico, USA)
IU.ANMO (Albuquerque, New Mexico, USA)
IU.ANMO (Albuquerque, New Mexico, USA)
IU.ANMO (Albuquerque, New Mexico, USA)
IU.ANMO (Albuquerque, New Mexico, USA)
IU.ANMO (Albuquerque, New Mexico, USA)
Channels (0):
所以頻道“LHZ”雖然明顯存在,但並未在此列出。
您需要使用level
參數:
client.get_stations(network="YO", station="TBAG", level="channel")
然后你應該得到:
Inventory created at 2017-05-09T12:58:29.000000Z
Created by: IRIS WEB SERVICE: fdsnws-station | version: 1.1.25
http://service.iris.edu/fdsnws/station/1/query?format=xml&network=Y...
Sending institution: IRIS-DMC (IRIS-DMC)
Contains:
Networks (1):
YO
Stations (1):
YO.TBAG (Banos, Tungurahua, Ecuador)
Channels (5):
YO.TBAG..HDF, YO.TBAG..HHZ, YO.TBAG..HHN, YO.TBAG..HHE,
YO.TBAG..LOG
文檔中描述了此參數:
level (str)
Specify the level of detail for the results (“network”, “station”, “channel”,
“response”), e.g. specify “response” to get full information including
instrument response for each channel.
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.