[obspy-users] obspy segy

Stephen Bannister S.Bannister at gns.cri.nz
Thu Apr 14 20:55:35 CEST 2011


I am trying to read a segy file :

from obspy.core import read
filename = 'try1.segy'
tr  = read(filename, format='SEGY')
print(tr)

but get the following 

Traceback (most recent call last):
  File "segy2sac.py", line 27, in <module>
    tr = read(filename,format='SEGY')
  File 
"/sp/prj/tvz95/mypython/lib/python2.6/site-packages/obspy.core-0.4.7-py2.6.egg/obspy/core/stream.py", 
line 214, in read
    st.extend(_read(file, format, headonly, **kwargs).traces)
  File 
"/sp/prj/tvz95/mypython/lib/python2.6/site-packages/obspy.core-0.4.7-py2.6.egg/obspy/core/stream.py", 
line 272, in _read
    raise TypeError(msg + ', '.join([_i.name for _i in ENTRY_POINTS]))
TypeError: Format is not supported. Supported Formats: MSEED, SAC, GSE2, 
SACXY, SLIST, TSPAIR, SEGY, SU


Any suggestions ????   Thanks in advance;

- Stephen
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20110415/75496cb1/attachment-0002.html>


More information about the obspy-users mailing list