Low-level interface for dataselect Web service of IRIS (http://www.iris.edu/ws/dataselect/)- release 1.8.1 (2012-05-03).
This method returns a single channel of time series data (no wildcards are allowed). With this service you specify network, station, location, channel and a time range and the service returns either as an ObsPy Stream object or saves the data directly as Mini-SEED file.
Parameters: |
|
---|---|
Return type: | Stream or None |
Returns: | ObsPy Stream object if no filename is given. |
Example
>>> 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.dataselect("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, 36000 samples