wiki:ArcLinkRouting

ArcLink Routing Issues

HostPortArcLink VersionRouting Namespace
webdc.eu18001ArcLink v1.1 (2009.075) http://geofon.gfz-potsdam.de/ns/routing/0.1/
webdc.eu18002ArcLink v1.1 (2009.085) http://geofon.gfz-potsdam.de/ns/Routing/1.0/
bhlsa03.knmi.nl18001ArcLink v1.1 (2009.085) http://geofon.gfz-potsdam.de/ns/routing/0.1/
bhlsa03.knmi.nl18002ArcLink v1.1 (2010.096) http://geofon.gfz-potsdam.de/ns/Routing/1.0/
erde.geophysik.uni-muenchen.de18001ArcLink v1.1 (2010.096) http://geofon.gfz-potsdam.de/ns/routing/0.1/

webdc.eu:18001

>>> from obspy.core import UTCDateTime
>>> from obspy.arclink.client import Client
>>> dt = UTCDateTime()
>>> c=Client('webdc.eu', 18001, debug=True)
>>> c.getRouting("BW", "MANZ", dt, dt+1)
{'BW.': [{'end': None,
          'host': 'webdc.eu',
          'port': 18001,
          'priority': 1,
          'start': UTCDateTime(1980, 1, 1, 0, 0)}]}

Resulting XML document

<?xml version="1.0" encoding="utf-8"?>
<ns0:routing xmlns:ns0="http://geofon.gfz-potsdam.de/ns/routing/0.1/">
  <ns0:route net_code="BW" sta_code="">
    <ns0:arclink address="webdc.eu:18001" end="" priority="1" start="1980-01-01T00:00:00.0000Z" />
    <ns0:seedlink address="webdc.eu:18000" priority="1" />
  </ns0:route>
</ns0:routing>

Client debug log

>>> HELLO
... ArcLink v1.1 (2009.075)
... GEOFON DC
>>> USER Anonymous
... OK
>>> INSTITUTION Anonymous
... OK
>>> REQUEST ROUTING
>>> 2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ
>>> END
... OK
>>> STATUS
... 911125
>>> STATUS 911125
... ERROR
>>> STATUS 911125
... <?xml version="1.0"?>
<arclink>
  <request id="911125" type="ROUTING" label="" args="" size="331" ready="true" error="false" message="">
    <volume id="routing" status="OK" size="331" message="">
      <line content="2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ" status="OK" size="0" message=""/>
    </volume>
  </request>
</arclink>
END
>>> DOWNLOAD 911125
331 bytes of data read
>>> PURGE 911125
>>> BYE

webdc.eu:18002

>>> from obspy.core import UTCDateTime
>>> from obspy.arclink.client import Client
>>> dt = UTCDateTime()
>>> c=Client('webdc.eu', 18002, debug=True)
>>> c.getRouting("BW", "MANZ", dt, dt+1)
{'BW.': [{'end': None, 
          'host': 'webdc.eu',
          'port': 18002,
          'priority': 2,
          'start': UTCDateTime(1980, 1, 1, 0, 0)},
         {'end': None,
          'host': 'erde.geophysik.uni-muenchen.de',
          'port': 18001,
          'priority': 1,
          'start': UTCDateTime(1980, 1, 1, 0, 0)}]}

Resulting XML document

<?xml version="1.0" encoding="utf-8"?>
<ns0:routing xmlns:ns0="http://geofon.gfz-potsdam.de/ns/Routing/1.0/">
  <ns0:route locationCode="" networkCode="BW" publicID="Route#20100604172038.001569.25659" stationCode="" streamCode="">
    <ns0:arclink address="webdc.eu:18002" end="" priority="2" start="1980-01-01T00:00:00.0000Z" />
    <ns0:arclink address="erde.geophysik.uni-muenchen.de:18001" end="" priority="1" start="1980-01-01T00:00:00.0000Z" />
    <ns0:seedlink address="webdc.eu:18000" priority="1" />
  </ns0:route>
</ns0:routing>

Client debug log

>>> HELLO
... ArcLink v1.1 (2009.085)
... GFZ
>>> USER Anonymous
... OK
>>> INSTITUTION Anonymous
... OK
>>> REQUEST ROUTING
>>> 2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ
>>> END
... OK
>>> STATUS
... 188281
>>> STATUS 188281
... ERROR
>>> STATUS 188281
... <?xml version="1.0"?>
<arclink>
  <request id="188281" type="ROUTING" label="" args="" size="531" ready="true" error="false" message="">
    <volume id="routing" status="OK" size="531" message="">
      <line content="2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ" status="OK" size="0" message=""/>
    </volume>
  </request>
</arclink>
END
>>> DOWNLOAD 188281
531 bytes of data read
>>> PURGE 188281
>>> BYE

erde.geophysik.uni-muenchen.de:18001

>>> from obspy.core import UTCDateTime
>>> from obspy.arclink.client import Client
>>> dt = UTCDateTime()
>>> c=Client('erde.geophysik.uni-muenchen.de', 18001, debug=True)
>>> c.getRouting("BW", "MANZ", dt, dt+1)
{'BW.': [{'end': None,
          'host': 'webdc.eu',
          'port': 18001,
          'priority': 1,
          'start': UTCDateTime(1980, 1, 1, 0, 0)}]}

Resulting XML document

<?xml version="1.0" encoding="utf-8"?>
<ns0:routing xmlns:ns0="http://geofon.gfz-potsdam.de/ns/routing/0.1/">
  <ns0:route net_code="BW" sta_code="MANZ" />
</ns0:routing>

Client debug log

>>> HELLO
... ArcLink v1.1 (2010.096)
... LMU
>>> USER Anonymous
... OK
>>> INSTITUTION Anonymous
... OK
>>> REQUEST ROUTING
>>> 2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ
>>> END
... OK
>>> STATUS
... 5052
>>> STATUS 5052
... ERROR
>>> STATUS 5052
... <?xml version="1.0"?>
<arclink>
  <request id="5052" type="ROUTING" label="" args="" size="169" ready="true" error="false" message="">
    <volume id="routing" status="OK" size="169" message="">
      <line content="2010,9,15,20,33,8,977000 2010,9,15,20,33,11,977000 BW MANZ" status="OK" size="0" message=""/>
    </volume>
  </request>
</arclink>
END
>>> DOWNLOAD 5052
169 bytes of data read
>>> PURGE 5052
>>> BYE