1

我正在使用 obspy 模块将 miniseed 文件从本地 SDS 文件结构读取到 obspy 流对象中。我根据SeisComP 格式化指令将我的文件组织成本地 SDS 文件结构,初始化obspy 客户端并使用client.get_waveforms函数,但返回的流对象为空。对于处理文件导入的代码部分,我在 python 中没有收到任何错误。

这是我的文件结构示例,它代表 YEAR-2011、Day-315、Network-OZLLOC1、Station-6F20、Location-B、Channel-E、Type-D:

“SDS_root”/2011/OZLLOC1/6F20/ED/OZLLOC1.6F20.BED2011.022.msd

任何我的文件导入代码:

import Tkinter, tkFileDialog
from obspy.core import UTCDateTime
from obspy.clients.filesystem.sds import Client

root = Tkinter.Tk()
root.withdraw()
SDS_root = tkFileDialog.askdirectory(initialdir=os.getcwd(), parent=root,
                                     title='Browse to SDS root dir')

client = Client(SDS_root, sds_type='D', format='*')
t = UTCDateTime("2011-11-22T00")
st = client.get_waveforms('OZLLOC1', '*', '*', '*', t, t+20, merge=-1)

print(st)
return st

print 语句给出“0 Trace(s) in Stream:”

正如您所看到的,我已经广泛使用通配符来在我的文件上投下一个大网,但是仍然没有任何内容被读入流(st 变量)。有没有人有过使用 obspy 阅读 SDS 的经验,或者可以发现我的问题?

4

1 回答 1

1

SDS 结构没有.msd文件结尾。

无论出于何种原因,我无法在此答案中发布多个链接,因此请查看我们的 github 问题跟踪器上的所有详细信息,无论如何,这都是 ObsPy 相关问题的正确位置:https ://github.com/obspy/obspy/issues/1378

于 2016-04-20T08:25:59.080 回答