obspy.clients.arclink.client.Client.get_waveforms¶
-
Client.
get_waveforms
(network, station, location, channel, starttime, endtime, format='MSEED', compressed=True, metadata=False, route=True)[source]¶ Retrieves waveform data via ArcLink and returns an ObsPy Stream object.
- Parameters
network (str) – Network code, e.g.
'BW'
.station (str) – Station code, e.g.
'MANZ'
.location (str) – Location code, e.g.
'01'
. Location code may contain wild cards.channel (str) – Channel code, e.g.
'EHE'
. Channel code may contain wild cards.starttime (
UTCDateTime
) – Start date and time.endtime (
UTCDateTime
) – End date and time.format (str, optional) – Output format. Either as full SEED (
'FSEED'
) or Mini-SEED ('MSEED'
) volume. Defaults to'MSEED'
.compressed (bool, optional) – Request compressed files from ArcLink server. Defaults to
True
.metadata (bool, optional) – Fetch PAZ and coordinate information and append to
Stats
of all fetched traces. Defaults toFalse
.route (bool, optional) – Enables ArcLink routing. Defaults to
True
.
- Returns
ObsPy
Stream
object.
Example
>>> from obspy.clients.arclink import Client >>> from obspy import UTCDateTime >>> client = Client('test@obspy.org', 'webdc.eu', 18001) >>> t = UTCDateTime("2009-08-20 04:03:12") >>> st = client.get_waveforms("BW", "RJOB", "", "EH*", t - 3, t + 15) >>> st.plot() #doctest: +SKIP