ObsPy Logo
1.3.0

Getting Started

  • Tutorial
  • Gallery
  • API Overview
    • obspy.core - Core classes of ObsPy
    • obspy.db - A seismic waveform indexer and database for ObsPy
    • obspy.geodetics - Various geodetic utilities for ObsPy
    • obspy.imaging - Plotting routines for ObsPy
    • obspy.realtime - Real time support for ObsPy
    • obspy.signal - Signal processing routines for ObsPy
    • obspy.taup - Ray theoretical travel times and paths
    • obspy.scripts.flinnengdahl
    • obspy.scripts.runtests
    • obspy.scripts.reftekrescue
    • obspy.scripts.print
    • obspy.scripts.sds_html_report
    • obspy.db.scripts.indexer
    • obspy.imaging.scripts.scan
    • obspy.imaging.scripts.plot
    • obspy.imaging.scripts.mopad
    • obspy.io.mseed.scripts.recordanalyzer
    • obspy.io.xseed.scripts.dataless2xseed
    • obspy.io.xseed.scripts.xseed2dataless
    • obspy.io.xseed.scripts.dataless2resp
    • obspy.clients.earthworm - Earthworm Wave Server client for ObsPy.
    • obspy.clients.fdsn - FDSN web service client for ObsPy
    • obspy.clients.filesystem - Local filesystem (SDS or TSINDEX) client for ObsPy
    • obspy.clients.iris - IRIS web service client for ObsPy
    • obspy.clients.neic - CWB query module for ObsPy
    • obspy.clients.nrl - Nominal Response Library client for ObsPy
    • obspy.clients.seedlink - SeedLink client for ObsPy
      • Classes & Functions
        • obspy.clients.seedlink.basic_client.Client
        • obspy.clients.seedlink.easyseedlink.EasySeedLinkClient
        • obspy.clients.seedlink.slclient.SLClient
        • obspy.clients.seedlink.slpacket.SLPacket
        • obspy.clients.seedlink.client.slnetstation.SLNetStation
        • obspy.clients.seedlink.client.seedlinkconnection.SeedLinkConnection
        • obspy.clients.seedlink.client.slstate.SLState
      • Modules
    • obspy.clients.seishub - SeisHub database client for ObsPy
    • obspy.clients.syngine - IRIS Syngine client for ObsPy
    • obspy.io.ah - AH (Ad Hoc) read support for ObsPy
    • obspy.io.ascii - SLIST and TSPAIR support for ObsPy
    • obspy.io.css - CSS read support for ObsPy
    • obspy.io.dmc - INGV DMX file format reader for ObsPy
    • obspy.io.gcf - Guralp Compressed Format read support for ObsPy
    • obspy.io.gse2 - GSE2/GSE1 and GSE2 bulletin support for ObsPy
    • obspy.io.kinemetrics - Evt format support for ObsPy
    • obspy.io.mseed - MiniSEED read and write support for ObsPy
    • obspy.io.nied.knet - K-NET/KiK-net read support for ObsPy
    • obspy.io.pdas - PDAS file read support for ObsPy
    • obspy.io.reftek - REFTEK130 read support for ObsPy
    • obspy.io.rg16 - Receiver Gather v1.6 read support for ObsPy
    • obspy.io.sac - SAC read and write support for ObsPy
    • obspy.io.seisan - SEISAN read support for ObsPy
    • obspy.io.seg2 - SEG-2 read support for ObsPy
    • obspy.io.segy - SEG Y and SU read and write support for ObsPy
    • obspy.io.sh - Q and ASC read and write, EVT read support (Seismic Handler)
    • obspy.io.wav - WAV (audio) read and write support for ObsPy
    • obspy.io.win - WIN read support for ObsPy
    • obspy.io.y - Nanometrics Y file read support for ObsPy
    • obspy.io.cmtsolution - CMTSOLUTION file format support for ObsPy
    • obspy.io.cnv - CNV file format support for ObsPy
    • obspy.io.focmec - FOCMEC file format support for ObsPy
    • obspy.io.gse2 - GSE2/GSE1 and GSE2 bulletin support for ObsPy
    • obspy.io.hypodd - HypoDD read support for ObsPy
    • obspy.io.iaspei - Read support for IASPEI formats
    • obspy.io.json - JSON write support for ObsPy
    • obspy.io.kml - Keyhole Markup Language (KML) write support for ObsPy
    • obspy.io.ndk - NDK file support for ObsPy
    • obspy.io.nied.fnet - F-net moment tensor file read support for ObsPy
    • obspy.io.nied.knet - K-NET/KiK-net read support for ObsPy
    • obspy.io.nlloc - NonLinLoc file format support for ObsPy
    • obspy.io.nordic - Nordic file format support for ObsPy
    • obspy.io.pde - NEIC PDE Bulletin read support for ObsPy
    • obspy.io.quakeml - QuakeML read and write support for ObsPy
    • obspy.io.scardec - SCARDEC file format support for ObsPy
    • obspy.io.seiscomp - SeisComP XML inventory and event file support for ObsPy
    • obspy.io.shapefile - ESRI shapefile write support for ObsPy
    • obspy.io.zmap - ZMAP read and write support for ObsPy
    • obspy.io.css - CSS read support for ObsPy
    • obspy.io.kml - Keyhole Markup Language (KML) write support for ObsPy
    • obspy.io.sac.sacpz - SACPZ write support for ObsPy
    • obspy.io.seiscomp - SeisComP XML inventory and event file support for ObsPy
    • obspy.io.shapefile - ESRI shapefile write support for ObsPy
    • obspy.io.stationtxt - FDSNWS station text file read and write support for ObsPy
    • obspy.io.stationxml - StationXML read and write support for ObsPy
    • obspy.io.xseed - (X)SEED and RESP support for ObsPy

Developer Resources

  • Contributing to ObsPy
  • Coding Style Guide
  • Contributor Covenant Code of Conduct
  • Changelog

Indices and Tables

  • Table of Contents
  • Citations
  • Contributors
ObsPy
  • »
  • API Overview »
  • obspy.clients.seedlink - SeedLink client for ObsPy »
  • obspy.clients.seedlink.basic_client.Client »
  • obspy.clients.seedlink.basic_client.Client.get_waveforms
  • View page source

obspy.clients.seedlink.basic_client.Client.get_waveforms

Client.get_waveforms(network, station, location, channel, starttime, endtime)[source]

Request waveform data from the seedlink server.

>>> from obspy import UTCDateTime
>>> client = Client('rtserver.ipgp.fr')
>>> t = UTCDateTime() - 1500
>>> st = client.get_waveforms("G", "FDFM", "00", "BHZ", t, t + 5)
>>> print(st)  
1 Trace(s) in Stream:
G.FDFM.00.BHZ | 20... | 20.0 Hz, ... samples

Most servers support ‘?’ single-character wildcard in location and channel code fields:

>>> st = client.get_waveforms("G", "FDFM", "??", "B??", t, t + 5)
>>> st = st.sort(reverse=True)
>>> print(st)  
6 Trace(s) in Stream:
G.FDFM.10.BHZ | 20... | 20.0 Hz, ... samples
G.FDFM.10.BHN | 20... | 20.0 Hz, ... samples
G.FDFM.10.BHE | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHZ | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHN | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHE | 20... | 20.0 Hz, ... samples

Depending on server capabilities, ‘*’ multi-character wildcards might work in any parameter:

>>> st = client.get_waveforms("*", "FDFM", "*", "B*", t, t + 5)
>>> st = st.sort(reverse=True)
>>> print(st)  
6 Trace(s) in Stream:
G.FDFM.10.BHZ | 20... | 20.0 Hz, ... samples
G.FDFM.10.BHN | 20... | 20.0 Hz, ... samples
G.FDFM.10.BHE | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHZ | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHN | 20... | 20.0 Hz, ... samples
G.FDFM.00.BHE | 20... | 20.0 Hz, ... samples

Note

Support of wildcards strongly depends on the queried seedlink server. In general, ‘?’ as single character wildcard seems to work well in location code and channel code fields for most servers. Usage of ‘*’ relies on the server supporting info requests on station or even channel level, see Client.get_info().

Parameters
  • network (str) – Network code. See note on wildcards above.

  • station (str) – Station code. See note on wildcards above.

  • location (str) – Location code. See note on wildcards above.

  • channel (str) – Channel code. See note on wildcards above.

  • starttime (UTCDateTime) – Start time of requested time window.

  • endtime (UTCDateTime) – End time of requested time window.

Next Previous

© Copyright 2012-2022, The ObsPy Development Team (devs@obspy.org). Last updated on 2022-03-10T14:47:02.

Built with Sphinx 4.4.0 using a theme provided by Read the Docs.