obspy.seishub.client.Client¶
- class Client(base_url=u'http://teide.geophysik.uni-muenchen.de:8080', user=u'admin', password=u'admin', timeout=10, debug=False, retries=3)[source]¶
Bases: future.types.newobject.newobject
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 >>> >>> t = UTCDateTime("2009-09-03 00:00:00") >>> client = Client(timeout=2) >>> >>> st = client.waveform.getWaveform("BW", "RTBE", "", "EHZ", t, t + 20) >>> print(st) 1 Trace(s) in Stream: BW.RTBE..EHZ | 2009-09-03T00:00:00.000000Z - ... | 200.0 Hz, 4001 samples
Attributes
__dict__ __doc__ unicode(string [, encoding[, errors]]) -> object __module__ str(object) -> string __weakref__ list of weak references to the object (if defined) Public Methods
next 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. __long__ __native__ Hook for the future.utils.native() function __nonzero__ __unicode__