Retrieves waveform data from IRIS and returns an ObsPy Stream object.
Parameters: |
|
---|---|
Returns: | ObsPy Stream object. |
Examples
Requesting waveform of a single channel.
>>> from obspy.iris import Client
>>> from obspy import UTCDateTime
>>> client = Client()
>>> t1 = UTCDateTime("2010-02-27T06:30:00.000")
>>> t2 = UTCDateTime("2010-02-27T07:00:00.000")
>>> st = client.getWaveform("IU", "ANMO", "00", "BHZ", t1, t2)
>>> print(st)
1 Trace(s) in Stream:
IU.ANMO.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 36001 samples
Requesting waveforms of multiple channels using wildcard characters.
>>> t1 = UTCDateTime("2010-084T00:00:00")
>>> t2 = UTCDateTime("2010-084T00:30:00")
>>> st = client.getWaveform("TA", "A25A", "", "BH*", t1, t2)
>>> print(st)
3 Trace(s) in Stream:
TA.A25A..BHE | 2010-03-25T00:00:00... | 40.0 Hz, 72001 samples
TA.A25A..BHN | 2010-03-25T00:00:00... | 40.0 Hz, 72001 samples
TA.A25A..BHZ | 2010-03-25T00:00:00... | 40.0 Hz, 72001 samples