Hallo,
I am trying to contact the BGR Web Services to get a big amount of different seismograms and/or traces. The seismograms and /or traces refer to an event list I mad by myself. The list gives me time, date, coordinates (N, E), depth to work with.
First try was to get the traces with ‘get_waveforms’. Because there is a big amount of data I created a txt file and want to call the data with this file,
Below I listed the commands that I am using and afterwards the txt file (simple version just to show the structur).
import obspy
from obspy.clients.fdsn import Client
client = Client(“BGR”)
from obspy import UTCDateTime
st = client.get_waveforms_bulk(“request.txt”) //using my path or being in correct folder
request.txt :
SX WERN * HHZ 2017-02-26T01:50:12 2017-02-26T01:50:42
SX WERN * HHZ 2005-12-27T15:40:08 2005-12-27T15:40:38
I get the following error:
Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python2.7/dist-packages/obspy/clients/fdsn/client.py”, line 914, in get_waveforms_bulk
data=bulk.encode(‘ascii’, ‘strict’))
File “/usr/lib/python2.7/dist-packages/obspy/clients/fdsn/client.py”, line 1346, in _download
raise FDSNException(msg, server_info)
obspy.clients.fdsn.header.FDSNException: Bad request. If you think your request was valid please contact the developers.
Detailed response of server:
Error 400: Bad Request
invalid number of stream components in line 1
Usage details are available from /fdsnws/dataselect/1/
Request:
/fdsnws/dataselect/1/query
Request Submitted:
2017-08-28T08:56:06.228712
Service Version:
1.1.0
May some one can help my with my problem.
Thanks in advance
S
Gesendet mit Telekom Mail - kostenlos und sicher für alle!
request (109 Bytes)