Dear Akiko,
try running the client in debug mode to get more information
client = Client(host='...',port=18001,user='ttest', debug=True)
st = client.getWaveform("PS","KI05","","HHZ", t - 3, t + 15)
Personally I never managed to get a status "CANCELLED" from an ArcLink
server so I have no clue what could be the issue - also the docs
(Seiscomp3 Development) only mention
the status "CANCEL" ...
For server issue try to ask the SeisComP support
(Seiscomp3 Development) or the EIDA mailinglist
(eida_maint@gfz-potsdam.de).
Hope it help,
Robert
Dear all,
I'm trying to get waveform data by using obspy.arclink from our
internal seiscomp sever.
The scart works with this sever as follows. So I think our arclink
sever is running fine. seiscomp exec scart -s -I
arclink://mulberry.jamstec.go.jp:18001 --list test1.txt --stdout >
tmp.ms
The example script given for the obspy.arclink on the web page
also works
(http://docs.obspy.org/packages/autogen/obspy.arclink.client.Client.getWaveform.html).
So I guess obspy is also running fine.
However, when I try to use obspy.arclink to get the data from our
server, it does not work. With the following script, ====== from
obspy import UTCDateTime from obspy.arclink.client import Client
client =
Client(host='mulberry.jamstec.go.jp',port=18001,user='ttest') t =
UTCDateTime("2009-03-20 04:03:12") st =
client.getWaveform("PS","KI05","","HHZ", t - 3, t + 15) st.plot()
I get the following error.
======= Traceback (most recent call last): File "plot_PS_KI.py",
line 6, in <module> st = client.getWaveform("PS","KI05","","HHZ", t
- 3, t + 15) File
"/usr/lib/python2.7/dist-packages/obspy/arclink/client.py", line
426, in getWaveform compressed=compressed, route=route) File
"/usr/lib/python2.7/dist-packages/obspy/arclink/client.py", line
545, in saveWaveform data = self._fetch(rtype, rdata, route=route)
File "/usr/lib/python2.7/dist-packages/obspy/arclink/client.py",
line 211, in _fetch endtime=request_data[1]) File
"/usr/lib/python2.7/dist-packages/obspy/arclink/client.py", line
601, in getRouting result = self._fetch(rtype, rdata, route=False)
File "/usr/lib/python2.7/dist-packages/obspy/arclink/client.py",
line 205, in _fetch return self._request(request_type,
request_data) File
"/usr/lib/python2.7/dist-packages/obspy/arclink/client.py", line
309, in _request raise ArcLinkException("%s %s" % (err_code, msg))
obspy.arclink.client.ArcLinkException: CANCELLED =======
I just wonder if there are any parameters on the arclink sever,
which should be set up to use the obspy.arclink. Maybe I should
allow the user "ttest" to access the data on the arclink sever ? I
would appreciate it if someone who is experienced both in
seiscomp3 and obspy could help me.
Regards, Akiko To
_______________________________________________ obspy-users mailing
list obspy-users@lists.swapbytes.de
http://lists.swapbytes.de/mailman/listinfo/obspy-users
- --
Dr. Robert Barsch
EGU Office Munich
Luisenstr. 37
80333 Munich
Germany
Phone: +49-89-21806565
Fax: +49-89-218017855
eMail: barsch@egu.eu