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
Client.station
Client.event
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 the SeisHub server.
Test if authentication information is valid.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Send a HTTP request via urllib2.
Special Methods
Default dir() implementation.
Default object formatter.
Initializes the SeisHub Web service client.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Abstract classes can override this to customize issubclass().