Trouble downloading through fdsn

Hi

I’m trying to download data via the shake’s fdsn dataselect server using ObsPy. I’m following the example at:
https://manual.raspberryshake.org/fdsn.html

But it doesn’t seem to work

Is the fdsn server up and running? Is the information in the example correct?

Thanks
J

Welcome to the forum.

Yes, it’s working. I just tested it, but I use Matlab, not Python.
So, your problem must be cockpit error.
Tell us exactly what you tried.

1 Like

After looking at it more closely, i think there are some errors in the code on that webpage…In the line:

waveform= client.get_waveforms('AM', R0D9C, '00', SHZ, starttime, endtime)

R0D9C and SHZ should be in quotation marks.

Also, it’s not clear that there is data available from that station at that time, maybe someone could verify that as well.

You’re correct, this code example is wrong. I will update the manual. Thanks for pointing this out.

It also looks like the underlying data for that station at that time has been archived. In the near future we will be updating our system to accommodate the data load we receive. At the moment, we can only handle requests going back about a year, but until then some of the older data will remain offline.

Meanwhile, this example will work:

from obspy.clients.fdsn import Client
from obspy import UTCDateTime
start_1 = "2019-10-01 00:00:00"
starttime = UTCDateTime(start_1)
endtime = starttime+600
client = Client(base_url='https://fdsnws.raspberryshakedata.com/')
waveform = client.get_waveforms('AM', 'R24FA', '00', 'EHZ', starttime, endtime)