obspy / obspy

ObsPy: A Python Toolbox for seismology/seismological observatories.
https://www.obspy.org
Other
1.17k stars 536 forks source link

does not have 'dataselect' and/or 'station' services #2103

Closed ElodieK closed 6 years ago

ElodieK commented 6 years ago

Hi there,

I'm using the mass downloader for earthquake: obspy.UTCDateTime(2011, 6, 12, 21, 3, 26) with IRIS and ISC clients however am getting these errors:

[2018-04-10 10:44:56,888] - obspy.clients.fdsn.mass_downloader - INFO: Cannot use client 'ISC' as it does not have 'dataselect' and/or 'station' services. [2018-04-10 10:44:56,888] - obspy.clients.fdsn.mass_downloader - INFO: Downloaded 0.0 MB in total.

Any suggestions please?

Thanks, Elodie

krischer commented 6 years ago

The ISC does not have a dataselect nor a station service (it only serves event meta information) so it cannot be used to download that data from them - so that message is expected (it also only states it as an INFO message). The mass downloader dynamically figures out the capabilities of each service - one of the requirements is that the service can server waveforms and station metainformation in the first place.

It usually does not hurt to just leave the providers keyword argument empty. It will then just use all providers it knows about.

ElodieK commented 6 years ago

It is not just the ISC, it's also IRIS which I've downloaded data from for other earthquakes in the past.


From: Lion Krischer notifications@github.com Sent: 10 April 2018 11:14:25 To: obspy/obspy Cc: Kendall, Elodie; Author Subject: Re: [obspy/obspy] does not have 'dataselect' and/or 'station' services (#2103)

The ISC does not have a dataselect nor a station service (it only serves event meta information) so it cannot be used to download that data from them - so that message is expected (it also only states it as an INFO message). The mass downloader dynamically figures out the capabilities of each service - one of the requirements is that the service can server waveforms and station metainformation in the first place.

It usually does not hurt to just leave the providers keyword argument empty. It will then just use all providers it knows about.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/obspy/obspy/issues/2103#issuecomment-380048245, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgEmZ7O8oLnbT1R6uG9ZGv4-pwuOP7Ekks5tnIYBgaJpZM4TN9dm.

krischer commented 6 years ago

Can you paste the full error message? IRIS definitely has these services and it is usually very stable. Can you also paste the output of running this on the shell?

$ python -c "from obspy.clients.fdsn import Client; Client('IRIS', debug=True)"
ElodieK commented 6 years ago

In [59]: run globaldata_afar.py

[2018-04-10 11:20:40,516] - obspy.clients.fdsn.mass_downloader - INFO: Initializing FDSN client(s) for IRIS.

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: Cannot use client 'IRIS' as it does not have 'dataselect' and/or 'station' services.

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: Successfully initialized 0 client(s): .

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: ============================== Final report

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: 0 MiniSEED files [0.0 MB] already existed.

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: 0 StationXML files [0.0 MB] already existed.

[2018-04-10 11:20:40,520] - obspy.clients.fdsn.mass_downloader - INFO: Downloaded 0.0 MB in total.


IndexError Traceback (most recent call last)

/Users/elodiekendall/Desktop/0PATHS/OBSPY/globaldata_afar.py in ()

 86

 87         sta_xml_file_list = glob.glob(os.path.join("stations/*.xml"))

---> 88 inv = read_inventory(sta_xml_file_list[0])

 89         for sta_xml in sta_xml_file_list[1:]:

 90            inv += read_inventory(sta_xml)

IndexError: list index out of range

On the shell:

Installed new opener with handlers: [<obspy.clients.fdsn.client.CustomRedirectHandler object at 0x109282c50>]

Base URL: http://service.iris.edu

Request Headers: {'User-Agent': 'ObsPy/1.1.0 (Darwin-15.6.0-x86_64-i386-64bit, Python 3.5.3)'}

Downloading http://service.iris.edu/fdsnws/dataselect/1/application.wadl with requesting gzip compression

Downloading http://service.iris.edu/fdsnws/event/1/application.wadl with requesting gzip compression

Downloading http://service.iris.edu/fdsnws/station/1/application.wadl with requesting gzip compression

Downloading http://service.iris.edu/fdsnws/event/1/catalogs with requesting gzip compression

Downloading http://service.iris.edu/fdsnws/event/1/contributors with requesting gzip compression

Uncompressing gzipped response for http://service.iris.edu/fdsnws/event/1/application.wadl

Uncompressing gzipped response for http://service.iris.edu/fdsnws/station/1/application.wadl

Uncompressing gzipped response for http://service.iris.edu/fdsnws/dataselect/1/application.wadl

Downloaded http://service.iris.edu/fdsnws/station/1/application.wadl with HTTP code: 200

Downloaded http://service.iris.edu/fdsnws/dataselect/1/application.wadl with HTTP code: 200

Downloaded http://service.iris.edu/fdsnws/event/1/application.wadl with HTTP code: 200

Downloaded http://service.iris.edu/fdsnws/event/1/catalogs with HTTP code: 200

Uncompressing gzipped response for http://service.iris.edu/fdsnws/event/1/contributors

Downloaded http://service.iris.edu/fdsnws/event/1/contributors with HTTP code: 200

Discovered station service

Discovered dataselect service

Discovered event service

Storing discovered services in cache.

Thanks.


From: Lion Krischer notifications@github.com Sent: 10 April 2018 11:19 To: obspy/obspy Cc: Kendall, Elodie; Author Subject: Re: [obspy/obspy] does not have 'dataselect' and/or 'station' services (#2103)

Can you paste the full error message? IRIS definitely has these services and it is usually very stable. Can you also paste the output of running this on the shell?

$ python -c "from obspy.clients.fdsn import Client; Client('IRIS', debug=True)"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/obspy/obspy/issues/2103#issuecomment-380049507, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgEmZ7H6iEFC7YK_v2V3NSF3utzPDUf3ks5tnIclgaJpZM4TN9dm.

krischer commented 6 years ago

Thanks. It is not a firewall issue on your side.

I assume there was a temporary internet connection problem at one point. Our internal fdnsws client caches service discovery so they are only discovered once within a python run. Can you restart ipython and run globaldata_afar.py again or just run python globaldata_afar.py on the shell? I think it should work then.

ElodieK commented 6 years ago

Yes, it's working- thanks a lot. Elodie


From: Lion Krischer notifications@github.com Sent: 10 April 2018 11:29:39 To: obspy/obspy Cc: Kendall, Elodie; Author Subject: Re: [obspy/obspy] does not have 'dataselect' and/or 'station' services (#2103)

Thanks. It is not a firewall issue on your side.

I assume there was a temporary internet connection problem at one point. Our internal fdnsws client caches service discovery so they are only discovered once within a python run. Can you restart ipython and run globaldata_afar.py again or just run python globaldata_afar.py on the shell? I think it should work then.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/obspy/obspy/issues/2103#issuecomment-380051996, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgEmZyFvQfN8IPZACvYA-YDA0X8q_qe1ks5tnImTgaJpZM4TN9dm.

krischer commented 6 years ago

Great :-)

ElodieK commented 6 years ago

Hi,

I'm having the same problem. My internet looks fine and I'm re-opening python and still no download. Is the problem your side?

Thanks.


From: Lion Krischer notifications@github.com Sent: 10 April 2018 11:33:59 To: obspy/obspy Cc: Kendall, Elodie; Author Subject: Re: [obspy/obspy] does not have 'dataselect' and/or 'station' services (#2103)

Closed #2103https://github.com/obspy/obspy/issues/2103.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/obspy/obspy/issues/2103#event-1565839272, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgEmZ7qwpg3imxcqTVaDFbxcPJGRoUCjks5tnIqXgaJpZM4TN9dm.

krischer commented 6 years ago

I'm pretty sure this is not ObsPy's fault. Does this:

python -c "from obspy.clients.fdsn import Client; Client('IRIS', debug=True)"

report discovered station + dataselect services? If yes then everything should work and there is some other issue. The mass downloader internally does the same.

ElodieK commented 6 years ago

Ah yes- found it.

Thanks again!


From: Lion Krischer notifications@github.com Sent: 10 April 2018 14:43:44 To: obspy/obspy Cc: Kendall, Elodie; Author Subject: Re: [obspy/obspy] does not have 'dataselect' and/or 'station' services (#2103)

I'm pretty sure this is not ObsPy's fault. Does this:

python -c "from obspy.clients.fdsn import Client; Client('IRIS', debug=True)"

report discovered station + dataselect services? If yes then everything should work and there is some other issue. The mass downloader internally does the same.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/obspy/obspy/issues/2103#issuecomment-380102854, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgEmZzsKpLXSww2xbf62n9Yn2oGJgVNDks5tnLcQgaJpZM4TN9dm.