I did a try, but it still request routing, not request waveform.
Any idea?
Xiao
Here is my obspy.client file:
xiao@linux-5sog:~/Develop-Code/code-test/obspy-test> more obspy-liv-arclink.py
from obspy.core import UTCDateTime
from obspy.arclink.client import Client
client = Client(host="dh113045.esc.liv.ac.uk", port=18001, debug=True)
start = UTCDateTime("2010-04-06 00:03:00")
st = client.getWaveform('YF', 'AGUA', '', 'HHE', start - 3, start + 15)
st.plot()
here is the output message:
xiao@linux-5sog:~/Develop-Code/code-test/obspy-test> python obspy-liv-arclink.py
Connected to dh113045.esc.liv.ac.uk:18001
HELLO
... ArcLink v1.2 (2010.256)
... SeisLiv
USER ObsPy client
... OK
INSTITUTION Anonymous
... OK
REQUEST ROUTING
... OK
2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA
END
... 43
STATUS 43
... <?xml version="1.0"?>
<arclink>
<request id="43" type="ROUTING" label="" args="" size="0" ready="false" error="false" message="">
<volume id="UNSET" status="UNSET" size="0" message="">
<line content="2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA" status="UNSET" size="0" message=""/>
</volume>
</request>
</arclink>
END
STATUS 43
... <?xml version="1.0"?>
<arclink>
<request id="43" type="ROUTING" label="" args="" size="0" ready="false" error="false" message="">
<volume id="routing" status="PROCESSING" size="0" message="">
<line content="2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA" status="PROCESSING" size="0" message=""/>
</volume>
</request>
</arclink>
END
STATUS 43
... <?xml version="1.0"?>
<arclink>
<request id="43" type="ROUTING" label="" args="" size="0" ready="false" error="false" message="">
<volume id="routing" status="PROCESSING" size="0" message="">
<line content="2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA" status="PROCESSING" size="0" message=""/>
</volume>
</request>
</arclink>
END
STATUS 43
... <?xml version="1.0"?>
<arclink>
<request id="43" type="ROUTING" label="" args="" size="0" ready="false" error="false" message="">
<volume id="routing" status="PROCESSING" size="0" message="">
<line content="2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA" status="PROCESSING" size="0" message=""/>
</volume>
</request>
</arclink>
END
STATUS 43
... <?xml version="1.0"?>
<arclink>
<request id="43" type="ROUTING" label="" args="" size="392" ready="true" error="false" message="">
<volume id="routing" status="OK" size="392" message="">
<line content="2010,4,6,0,2,56,0 2010,4,6,0,3,16,0 YF AGUA" status="OK" size="0" message=""/>
</volume>
</request>
</arclink>
END
DOWNLOAD 43
<?xml version="1.0" encoding="utf-8"?>
<ns0:routing xmlns:ns0="http://geofon.gfz-potsdam.de/ns/Routing/1.0/">
<ns0:route locationCode="" networkCode="YF" publicID="Route/YF///" stationCode="" streamCode="">
<ns0:arclink address="localhost:18001" end="" priority="1" start="1980-01-01T00:00:00.0000Z" />
<ns0:seedlink address="localhost:18000" priority="1" />
</ns0:route>
</ns0:routing>
PURGE 43
BYE
Requesting localhost:18001
Traceback (most recent call last):
File "obspy-liv-arclink.py", line 6, in <module>
st = client.getWaveform('YF', 'AGUA', '', 'HHE', start - 3, start + 15)
File "/usr/lib/python2.6/site-packages/obspy.core-0.4.5.dev_r2095-py2.6.egg/obspy/core/util.py", line 427, in echo_func
return func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/obspy.arclink-0.4.6.dev_r2311-py2.6.egg/obspy/arclink/client.py", line 321, in getWaveform
endtime, format=format, compressed=compressed)
File "/usr/lib/python2.6/site-packages/obspy.core-0.4.5.dev_r2095-py2.6.egg/obspy/core/util.py", line 427, in echo_func
return func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/obspy.arclink-0.4.6.dev_r2311-py2.6.egg/obspy/arclink/client.py", line 405, in saveWaveform
data = self._fetch(rtype, rdata)
File "/usr/lib/python2.6/site-packages/obspy.arclink-0.4.6.dev_r2311-py2.6.egg/obspy/arclink/client.py", line 177, in _fetch
self.open(self.host, self.port, self.timeout)
File "/usr/lib/python2.6/telnetlib.py", line 225, in open
self.sock = socket.create_connection((host, port), timeout)
File "/usr/lib/python2.6/socket.py", line 514, in create_connection
raise error, msg
socket.error: [Errno 111] Connection refused