Obspy,从 SDS 文件结构中读取文件

Obspy, reading files from SDS file structure

我正在使用 obspy 模块将本地 SDS 文件结构中的 miniseed 文件读取到 obspy 流对象中。我已经按照SeisComP formatting instructions, initialised the obspy client and used the client.get_waveforms函数将我的文件组织成一个本地的SDS文件结构,但是返回的流对象是空的。对于处理文件导入的代码部分,我在 python 中没有收到任何错误。

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

"SDS_root" / 2011 / OZLLOC1 / 6F20 / E.D / OZLLOC1.6F20.B.E.D.2011.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

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

如您所见,我广泛使用了通配符以便在我的文件上撒下一张大网,但仍然没有任何内容被读入流(st 变量)。有没有人有使用 obspy 从 SDS 读取的经验,或者可以发现我的问题?

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

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