Skip to content

Obspy - no data is downloaded #1

@SarahMelanieM

Description

@SarahMelanieM

Hello everyone,

I have problems downloading the data of AlpArray with Obspy.
After creating the token for the data download of the AlpArray data (the token works fine, tested with fdsnws_fetch), I tried to download the data via Obspy using the example applied:


from obspy.clients.fdsn import RoutingClient
from obspy import UTCDateTime

rsClient = RoutingClient("eida-routing", credentials={'EIDA_TOKEN': '/home/smader/.eidatoken'})
st = rsClient.get_waveforms(network="Z3", channel="HHZ", starttime=UTCDateTime(2016, 3, 1), endtime=UTCDateTime(2016, 3, 1, 0, 2, 0))
print(st)

OUTPUT:
0 Trace(s) in Stream:

Using the same code for the network GR resulted in the following output:

41 Trace(s) in Stream:

GR.AHRW..HHZ | 2016-02-29T23:59:56.418393Z - 2016-03-01T00:02:03.178393Z | 100.0 Hz, 12677 samples
...
(39 other traces)
...
GR.ZARR..HHZ | 2016-02-29T23:59:58.260000Z - 2016-03-01T00:02:00.390000Z | 100.0 Hz, 12214 samples

So the script runs perfectly except for the Z3 network.

I'm using Obspy version 1.1.0 and Python 3.6, which is directly installed in my home directory.
Obspy was installed the following:
downloading the file ObsPy-1.1.0-py36_0-Linux-x86_64.sh from github
chmod 755 ObsPy-1.1.0-py36_0-Linux-x86_64.sh
sh ./ObsPy-1.1.0-py36_0-Linux-x86_64.sh

I don't have the PATH pointing to Obspy in my .bashrc. I always load the PATH in the terminal when using Obspy:
export PATH=~/obspy/bin:$PATH

The python script client.py which is called during the routing ( ~/obspy/lib/python3.6/site-packages/obspy/clients/fdsn/client.py) has a size of 80.9kB.

It would be great to find out why it's not working properly.
Thanks a lot.

Greetings

Sarah

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions