[obspy-users] Problems reading from local earthworm server

Kaven, Joern okaven at usgs.gov
Wed Aug 12 00:37:17 CEST 2015


Hi folks
I'm running into problems when trying to access data from a local earthworm
server. The code I'm trying to execute is:

client = Client("isdp01.wr.usgs.gov",16022)
ew_resp = client.availability(network='GS',station='DEC01',channel='DP*')
t1 = UTCDateTime(2014,1,22,0,0)
t2 = UTCDateTime(2014,1,23,0,0)
st = client.getWaveform(network='GS',station='DEC01',location='02',
channel='DP*', starttime=t1, endtime=t2 )


I get the following error:

  File "/usr/local/lib/python3.4/site-packages/obspy/earthworm/client.py",
line 105, in getWaveform
    cleanup=cleanup)
  File "/usr/local/lib/python3.4/site-packages/obspy/earthworm/client.py",
line 112, in getWaveform
    timeout=self.timeout)
  File
"/usr/local/lib/python3.4/site-packages/obspy/earthworm/waveserver.py",
line 256, in readWaveServerV
    print(msg % (flag, RETURNFLAG_KEY[flag]))
KeyError: '02'


waverserver.py seems to have problems getting the location code right. Not
sure why this is a problem, but any help would be greatly appreciated. I'm
running python 3.4 with obey 10.2 on mac installed using home-brew/pip3.

Thanks in advance,
Ole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.swapbytes.de/pipermail/obspy-users/attachments/20150811/f491941d/attachment.html>


More information about the obspy-users mailing list