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
      • Modules
        • obspy.clients.seedlink.basic_client
        • obspy.clients.seedlink.easyseedlink
        • obspy.clients.seedlink.slclient
        • obspy.clients.seedlink.slpacket
        • obspy.clients.seedlink.seedlinkexception
        • obspy.clients.seedlink.client.seedlinkconnection
        • obspy.clients.seedlink.client.slnetstation
        • obspy.clients.seedlink.client.slstate
    • 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.easyseedlink »
  • obspy.clients.seedlink.easyseedlink.create_client
  • View page source

obspy.clients.seedlink.easyseedlink.create_client

create_client(server_url, on_data=None, on_seedlink_error=None, on_terminate=None)[source]

Quickly create an EasySeedLinkClient instance.

Example

>>> from obspy.clients.seedlink.easyseedlink import create_client

>>> def handle_data(trace):
...     print('Received new data:')
...     print(trace)
...     print()
...
>>> client = create_client('geofon.gfz-potsdam.de',
...                        handle_data)  
>>> client.select_stream('BW', 'MANZ', 'EHZ')  
>>> client.run()  

Note

The methods passed to the create_client() function are not bound to the client instance, i.e. they do not have access to the instance via the self attribute. To get a bound method, the client class can be subclassed and the method overridden.

Parameters
  • server_url (str) – The SeedLink server URL

  • on_data (callable) – A function or callable that is called for every new trace received from the server; needs to accept one argument (the trace); default is None

  • on_seedlink_error (callable) – A function or callable that is called when a SeedLink ERROR response is received (see the on_seedlink_error() method for details); default is None

  • on_terminate (callable) – A function or callable that is called when the connection is terminated (see the on_terminate() method for details); default is None

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.