[obspy-users] obspy.arclink

Wang, Xiao Xiao.Wang at liverpool.ac.uk
Tue Apr 5 12:11:28 CEST 2011


I did a try, but it still request routing, not request waveform.

Any idea?

Xiao

Here is my obspy.client file:

xiao at 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 at 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



-----Original Message-----
From: obspy-users-bounces at lists.sevor.de [mailto:obspy-users-bounces at lists.sevor.de] On Behalf Of Tobias Megies
Sent: 04 April 2011 19:01
To: users at obspy.org
Subject: Re: [obspy-users] obspy.arclink

Hi Xiao,

add option "-U" to update an already installed package and you also have
to specify version "==dev" to get the latest developer revision.
See http://obspy.org/wiki/InstallationInstructions:

easy_install -N -U obspy.arclink==dev -d ...

..should do the trick.

best,
Tobias

Wang, Xiao wrote:
> Hi Robert,
> 
> Thanks to fix it. 
> 
> Can the updated code be checked out from https://svn.obspy.org?
> 
> I checked out from the above link, but failed to install. Please see the following message when I install it: 
> 
> linux-5sog:/home/xiao/updated-obspy/obspy # /usr/lib/python/site-packages/easy_install -N -d /usr/lib/python/site-packages/ obspy.arclink
> Searching for obspy.arclink
> Best match: obspy.arclink 0.4.5.dev-r2079
> Processing obspy.arclink-0.4.5.dev_r2079-py2.6.egg
> obspy.arclink 0.4.5.dev-r2079 is already the active version in easy-install.pth
> 
> Using /usr/lib/python2.6/site-packages/obspy.arclink-0.4.5.dev_r2079-py2.6.egg
> 
> 
> Regards,
> 
> Xiao
> 
> 
> -----Original Message-----
> From: obspy-users-bounces at lists.sevor.de [mailto:obspy-users-bounces at lists.sevor.de] On Behalf Of Robert Barsch
> Sent: 02 April 2011 10:45
> To: users at obspy.org
> Subject: Re: [obspy-users] obspy.arclink
> 
> Dear Xiao,
> 
> the issue should be fixed within the latest obspy.arclink revision -
> please report back of there are still problems.
> 
> Thanks + best,
> Robert
> 
> 

_______________________________________________
obspy-users mailing list
obspy-users at lists.sevor.de
http://lists.obspy.org/cgi-bin/mailman/listinfo/obspy-users

_______________________________________________
obspy-users mailing list
obspy-users at lists.sevor.de
http://lists.obspy.org/cgi-bin/mailman/listinfo/obspy-users

-- 
Dipl.-Geophys. Tobias Megies

Geophysikalisches Observatorium
Ludwigshöhe 8
82256 Fürstenfeldbruck

Ludwig-Maximilians-Universität
Department für Geo- und Umweltwissenschaften
Sektion Geophysik
Theresienstrasse 41/IV
80333 München

Tel: +49 (0) 89 2180-73981
     +49 (0) 89 2180-4326
Mail: tobias.megies at geophysik.uni-muenchen.de

_______________________________________________
obspy-users mailing list
obspy-users at lists.sevor.de
http://lists.obspy.org/cgi-bin/mailman/listinfo/obspy-users




More information about the obspy-users mailing list