obspy.clients.seishub.client.Client¶
-
class
Client
(base_url='http://teide.geophysik.uni-muenchen.de:8080', user='admin', password='admin', timeout=10, debug=False, retries=3)[source]¶ Bases:
object
SeisHub database request Client class.
The following classes are automatically linked with initialization. Follow the links in “Linked Class” for more information. They register via the name listed in “Entry Point”.
Entry Point Linked Class Client.waveform
_WaveformMapperClient
Client.station
_StationMapperClient
Client.event
_EventMapperClient
Example
>>> from obspy.clients.seishub import Client >>> >>> t = UTCDateTime("2009-09-03 00:00:00") >>> client = Client(timeout=20) >>> >>> st = client.waveform.get_waveforms( ... "BW", "RTBE", "", "EHZ", t, t + 20) # doctest: +SKIP >>> print(st) # doctest: +ELLIPSIS +SKIP 1 Trace(s) in Stream: BW.RTBE..EHZ | 2009-09-03T00:00:00.000000Z - ... | 200.0 Hz, 4001 samples
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined) Public Methods
ping
Ping the SeisHub server. test_auth
Test if authentication information is valid. Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_fetch
_http_request
Send a HTTP request via urllib2. _objectify
Special Methods
__dir__
Default dir() implementation. __format__
Default object formatter. __init__
Initializes the SeisHub Web service client. __init_subclass__
This method is called when a class is subclassed. __new__
Create and return a new object. __reduce__
Helper for pickle. __reduce_ex__
Helper for pickle. __sizeof__
Size of object in memory, in bytes. __subclasshook__
Abstract classes can override this to customize issubclass().