obspy.seishub - SeisHub database client for ObsPy

The obspy.seishub package contains a client for the seismological database SeisHub (http://www.seishub.org).

copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html)

Basic Example

>>> from obspy.seishub import Client
>>> from obspy import UTCDateTime
>>> client = Client(timeout=20)
>>> t = UTCDateTime('2010-01-01T10:00:00')
>>> st = client.waveform.getWaveform("BW", "MANZ", "", "EH*", t, t+20)
>>> st.sort()  
<obspy.core.stream.Stream object at ...>
>>> print(st)  
3 Trace(s) in Stream:
BW.MANZ..EHE | 2010-01-01T10:00:00.000000Z - ... | 200.0 Hz, 4001 samples
BW.MANZ..EHN | 2010-01-01T10:00:00.000000Z - ... | 200.0 Hz, 4001 samples
BW.MANZ..EHZ | 2010-01-01T10:00:00.000000Z - ... | 200.0 Hz, 4001 samples

Advanced Examples

>>> client.waveform.getNetworkIds()     
['KT', 'BW', 'NZ', 'GR', ...]
>>> sta_ids = client.waveform.getStationIds(network='BW')
>>> sorted(sta_ids)  
['ALTM', 'BGLD', 'BW01',..., 'WETR', 'ZUGS']
>>> cha_ids = client.waveform.getChannelIds(network='BW', station='MANZ')
>>> sorted(cha_ids)
['AEX', 'AEY', 'EHE', 'EHN', 'EHZ', 'LOG', 'SHE', 'SHN', 'SHZ']
>>> paz = client.station.getPAZ('BW.MANZ..EHZ', UTCDateTime('20090808'))
>>> paz = paz.items()
>>> sorted(paz)  
[('gain', 60077000.0),
 ('poles', [(-0.037004+0.037016j), (-0.037004-0.037016j), (-251.33+0j),
            (-131.04-467.29j), (-131.04+467.29j)]),
 ('sensitivity', 2516800000.0),
 ('zeros', [0j, 0j])]

Classes & Functions

client.Client SeisHub database request Client class.
client._EventMapperClient Interface to access the SeisHub Event Web service.
client._StationMapperClient Interface to access the SeisHub Station Web service.
client._WaveformMapperClient Interface to access the SeisHub Waveform Web service.

Modules

client SeisHub database client for ObsPy.