Query the dataselect service of the client.
>>> client = Client("IRIS")
>>> t1 = UTCDateTime("2010-02-27T06:30:00.000")
>>> t2 = t1 + 1
>>> st = client.get_waveforms("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, 20 samples
>>> st = client.get_waveforms("IU", "ANMO", "00", "BH*", t1, t2)
>>> print st
3 Trace(s) in Stream:
IU.ANMO.00.BH1 | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.ANMO.00.BH2 | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.ANMO.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
>>> st = client.get_waveforms("IU", "A*", "*", "BHZ", t1, t2)
>>> print st
7 Trace(s) in Stream:
IU.ADK.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.ADK.10.BHZ | 2010-02-27T06:30:00... | 40.0 Hz, 40 samples
IU.AFI.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.AFI.10.BHZ | 2010-02-27T06:30:00... | 40.0 Hz, 40 samples
IU.ANMO.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.ANMO.10.BHZ | 2010-02-27T06:30:00... | 40.0 Hz, 40 samples
IU.ANTO.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
>>> st = client.get_waveforms("IU", "A??", "?0", "BHZ", t1, t2)
>>> print st
4 Trace(s) in Stream:
IU.ADK.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.ADK.10.BHZ | 2010-02-27T06:30:00... | 40.0 Hz, 40 samples
IU.AFI.00.BHZ | 2010-02-27T06:30:00... | 20.0 Hz, 20 samples
IU.AFI.10.BHZ | 2010-02-27T06:30:00... | 40.0 Hz, 40 samples
>>> t = UTCDateTime("2012-12-14T10:36:01.6Z")
>>> st = client.get_waveforms("TA", "?42A", "*", "BHZ", t+300, t+400,
... attach_response=True)
>>> st.remove_response(output="VEL")
<obspy.core.stream.Stream object at ...>
>>> st.plot()
Exception occurred rendering plot.
Note
Use attach_response=True to automatically add response information to each trace. This can be used to remove response using remove_response().
Parameters: |
|
---|
Any additional keyword arguments will be passed to the webservice as additional arguments. If you pass one of the default parameters and the webservice does not support it, a warning will be issued. Passing any non-default parameters that the webservice does not support will raise an error.