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.seishub import Client
>>> from obspy import UTCDateTime
>>>
>>> t = UTCDateTime("2009-09-03 00:00:00")
>>> client = Client()
>>>
>>> st = client.waveform.getWaveform("BW", "RTPI", "", "EHZ", t, t + 20)
>>> print(st)
1 Trace(s) in Stream:
BW.RTPI..EHZ | 2009-09-03T00:00:00.000000Z - ... | 250.0 Hz, 5001 samples
Attributes
__dict__ | |
__doc__ | str(object) -> string |
__module__ | str(object) -> string |
__weakref__ | list of weak references to the object (if defined) |
Public Methods
ping | Ping the SeisHub server. |
testAuth | Test if authentication information is valid. |
Private Methods
_HTTP_request | Send a HTTP request via urllib2. |
_fetch | |
_objectify |
Special Methods
__init__ | Initializes the SeisHub Web service client. |