Reading a Seisan Waveform File

Hello Users,

I have a question regarding reading in a Seisan waveform file into obspy. Here’s the following code:

from obspy import read
st = read(“C:\Users\Edge 14 User\Desktop\2013-06-23-0000-00S.YZ____003”, “SEISAN”)

Traceback (most recent call last):
File “<pyshell#2>”, line 1, in
st = read(“C:\Users\Edge 14 User\Desktop\2013-06-23-0000-00S.YZ____003”, “SEISAN”)
File “C:\Python27\lib\site-packages\obspy\core\stream.py”, line 247, in read
st.extend(_read(file, format, headonly, **kwargs).traces)
File “C:\Python27\lib\site-packages\obspy\core\util\decorator.py”, line 151, in wrapped_func
result = func(filename, *args, **kwargs)
File “C:\Python27\lib\site-packages\obspy\core\stream.py”, line 288, in _read
headonly=headonly, **kwargs)
File “C:\Python27\lib\site-packages\obspy\core\util\base.py”, line 400, in _readFromPlugin
format_ep = EPS[format]
KeyError: ‘SEISAN’

I was wondering what the issue may be? I am struggling with just reading a seismogram from my own files, but I can read in the example files just fine.

Any thoughts?

Greg

Hi Greg,

Can you post the file to the group as an attachment if it is not too big? I don't even specify that I am reading in a SEISAN format and the read() call just figures it out. I am still using ObsPy 0.8.4 on Mac OS X and it works fine. Looks like the error below indicates the version didn't support a SEISAN waveform file read since there was a key error....

Cheers,

Paul

Brenn, Gregory wrote: