Kernel: Anaconda (Python 3) obspy
Retrieving Waveform Data from Various Webservices
There are a couple of different ways to use webservices to download GeoNet data. Here are some examples using the Python Obspy module.
First example is requesting Strong Motion data using FDSN webservices. We remove the instrument response, determine the peak ground acceleration and plot the corrected waveform.
In [1]:
Out[1]:
PGA (HN1) = 1.036797, PGA (HN2) = -1.029480, PGA (HNZ) = -0.363710 m/s/s
In [0]:
Example of retrieving broadband waveform data from the common waveform buffer.
In [0]:
In [2]:
Out[2]:
In [18]:
Out[18]:
6 Trace(s) in Stream:
NZ.KAIT.40.BTH | 2016-11-13T10:00:07.069500Z - 2016-11-13T12:59:50.669500Z | 10.0 Hz, 107837 samples
NZ.KAIT.41.BTH | 2016-11-13T10:00:01.469500Z - 2016-11-13T12:59:38.369500Z | 10.0 Hz, 107770 samples
NZ.KAIT.40.BTT | 2016-11-13T10:00:07.069500Z - 2016-11-13T12:59:50.669500Z | 10.0 Hz, 107837 samples
NZ.KAIT.41.BTT | 2016-11-13T10:00:01.469500Z - 2016-11-13T12:59:38.369500Z | 10.0 Hz, 107770 samples
NZ.KAIT.40.BTZ | 2016-11-13T10:00:07.069541Z - 2016-11-13T12:59:50.669541Z | 10.0 Hz, 107837 samples
NZ.KAIT.41.BTZ | 2016-11-13T10:00:01.469541Z - 2016-11-13T12:59:38.369541Z | 10.0 Hz, 107770 samples