Low-level interface for bulkdataselect Web service of IRIS (http://www.iris.edu/ws/bulkdataselect/) - release 1.4.5 (2012-05-03).
This method returns multiple channels of time series data for specified time ranges. With this service you specify a list of selections composed of network, station, location, channel, starttime and endtime and the service streams back the selected raw waveform data as an ObsPy Stream object.
Simple requests with wildcards can be performed via getWaveform(). The list with channels can also be generated using availability().
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()
>>> req = []
>>> req.append("TA A25A -- BHZ 2010-084T00:00:00 2010-084T00:10:00")
>>> req.append("TA A25A -- BHN 2010-084T00:00:00 2010-084T00:10:00")
>>> req.append("TA A25A -- BHE 2010-084T00:00:00 2010-084T00:10:00")
>>> req = "\n".join(req) # use only a single backslash!
>>> print(req)
TA A25A -- BHZ 2010-084T00:00:00 2010-084T00:10:00
TA A25A -- BHN 2010-084T00:00:00 2010-084T00:10:00
TA A25A -- BHE 2010-084T00:00:00 2010-084T00:10:00
>>> st = client.bulkdataselect(req)
>>> print(st)
3 Trace(s) in Stream:
TA.A25A..BHE | 2010-03-25T00:00:00.000001Z ... | 40.0 Hz, 24001 samples
TA.A25A..BHN | 2010-03-25T00:00:00.000000Z ... | 40.0 Hz, 24001 samples
TA.A25A..BHZ | 2010-03-25T00:00:00.000000Z ... | 40.0 Hz, 24000 samples