ObsPy Logo
1.4.1

Getting Started

  • Tutorial
  • Gallery
  • API Overview
    • obspy.core - Core classes of ObsPy
    • Classes & Functions
    • Modules
    • obspy.geodetics - Various geodetic utilities for ObsPy
    • Classes & Functions
    • Modules
    • obspy.imaging - Plotting routines for ObsPy
    • Classes & Functions
    • Modules
    • Scripts
    • obspy.realtime - Real time support for ObsPy
    • Modules
    • obspy.signal - Signal processing routines for ObsPy
    • Classes & Functions
    • Modules
    • obspy.taup - Ray theoretical travel times and paths
    • Classes & Functions
    • Modules
    • obspy.scripts.flinnengdahl
    • obspy.scripts.runtests
    • obspy.scripts.reftekrescue
    • obspy.scripts.print
    • obspy.scripts.sds_html_report
    • 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.
    • Classes & Functions
    • Modules
    • obspy.clients.fdsn - FDSN web service client for ObsPy
    • Classes & Functions
    • Modules
    • obspy.clients.filesystem - Local filesystem (SDS or TSINDEX) client for ObsPy
    • Classes & Functions
    • Modules
    • obspy.clients.iris - EarthScope (former IRIS) web service client for ObsPy
    • Classes & Functions
    • Modules
    • obspy.clients.neic - CWB query module for ObsPy
    • Classes & Functions
    • Modules
    • obspy.clients.nrl - Nominal Response Library client for ObsPy
    • Classes & Functions
    • Modules
    • Scripts
    • obspy.clients.seedlink - SeedLink client for ObsPy
    • Classes & Functions
      • obspy.clients.seedlink.basic_client.Client
        • Client
        • obspy.clients.seedlink.basic_client.Client.get_info
        • obspy.clients.seedlink.basic_client.Client.get_waveforms
        • Client._connect()
        • Client._init_client()
        • Client._multiselect_request()
        • Client._packet_handler()
        • Client.__delattr__()
        • Client.__dir__()
        • Client.__eq__()
        • Client.__format__()
        • Client.__ge__()
        • Client.__getattribute__()
        • Client.__gt__()
        • Client.__hash__()
        • Client.__init__()
        • Client.__init_subclass__()
        • Client.__le__()
        • Client.__lt__()
        • Client.__ne__()
        • Client.__new__()
        • Client.__reduce__()
        • Client.__reduce_ex__()
        • Client.__repr__()
        • Client.__setattr__()
        • Client.__sizeof__()
        • Client.__str__()
        • Client.__subclasshook__()
      • 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.syngine - EarthScope/IRIS Syngine client for ObsPy
    • Classes & Functions
    • Modules
    • obspy.io.ah - AH (Ad Hoc) read support for ObsPy
    • Modules
    • obspy.io.alsep - Apollo seismic data support for ObsPy
    • Modules
    • obspy.io.ascii - SLIST and TSPAIR support for ObsPy
    • Modules
    • obspy.io.css - CSS read support for ObsPy
    • Modules
    • obspy.io.cybershake - CyberShake read support for ObsPy
    • Modules
    • obspy.io.dmc - INGV DMX file format reader for ObsPy
    • Modules
    • obspy.io.gcf - Guralp Compressed Format, GCF, read and write support for ObsPy
    • Modules
    • obspy.io.gse2 - GSE2/GSE1 and GSE2 bulletin support for ObsPy
    • Modules
    • obspy.io.kinemetrics - Evt format support for ObsPy
    • Modules
    • obspy.io.mseed - MiniSEED read and write support for ObsPy
    • Modules
    • Scripts
    • obspy.io.nied.knet - K-NET/KiK-net read support for ObsPy
    • obspy.io.pdas - PDAS file read support for ObsPy
    • Modules
    • obspy.io.reftek - REFTEK130 read support for ObsPy
    • Modules
    • obspy.io.rg16 - Receiver Gather v1.6 read support for ObsPy
    • Modules
    • obspy.io.sac - SAC read and write support for ObsPy
    • Modules
    • obspy.io.seisan - SEISAN read support for ObsPy
    • Modules
    • obspy.io.seg2 - SEG-2 read support for ObsPy
    • Modules
    • obspy.io.segy - SEG Y and SU read and write support for ObsPy
    • Classes & Functions
    • Modules
    • obspy.io.sh - Q and ASC read and write, EVT read support (Seismic Handler)
    • Modules
    • obspy.io.wav - WAV (audio) read and write support for ObsPy
    • Modules
    • obspy.io.win - WIN read support for ObsPy
    • Modules
    • obspy.io.y - Nanometrics Y file read support for ObsPy
    • Modules
    • obspy.io.cmtsolution - CMTSOLUTION file format support for ObsPy
    • Modules
    • obspy.io.cnv - CNV file format support for ObsPy
    • Modules
    • obspy.io.csv - CSV, CSZ and EVENTTXT read/write support for earthquake catalogs
    • Modules
    • obspy.io.focmec - FOCMEC file format support for ObsPy
    • Modules
    • obspy.io.gse2 - GSE2/GSE1 and GSE2 bulletin support for ObsPy
    • Modules
    • obspy.io.hypodd - HypoDD read support for ObsPy
    • Modules
    • obspy.io.iaspei - Read support for IASPEI formats
    • Modules
    • obspy.io.json - JSON write support for ObsPy
    • Classes & Functions
    • Modules
    • obspy.io.kml - Keyhole Markup Language (KML) write support for ObsPy
    • Modules
    • obspy.io.ndk - NDK file support for ObsPy
    • Modules
    • 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
    • Modules
    • obspy.io.nordic - Nordic file format support for ObsPy
    • Modules
    • obspy.io.pde - NEIC PDE Bulletin read support for ObsPy
    • Modules
    • obspy.io.quakeml - QuakeML read and write support for ObsPy
    • obspy.io.quakeml.core._is_quakeml
    • obspy.io.quakeml.core._read_quakeml
    • obspy.io.quakeml.core._read_seishub_event_xml
    • obspy.io.quakeml.core._write_quakeml
    • obspy.io.quakeml.core.Pickler
    • obspy.io.quakeml.core.Unpickler
    • obspy.io.scardec - SCARDEC file format support for ObsPy
    • Modules
    • obspy.io.seiscomp - SeisComP XML inventory and event file support for ObsPy
    • Modules
    • obspy.io.shapefile - ESRI shapefile write support for ObsPy
    • Modules
    • obspy.io.zmap - ZMAP read and write support for ObsPy
    • Modules
    • obspy.io.css - CSS read support for ObsPy
    • Modules
    • obspy.io.kml - Keyhole Markup Language (KML) write support for ObsPy
    • Modules
    • obspy.io.sac.sacpz - SACPZ write support for ObsPy
    • obspy.io.seiscomp - SeisComP XML inventory and event file support for ObsPy
    • Modules
    • obspy.io.shapefile - ESRI shapefile write support for ObsPy
    • Modules
    • obspy.io.stationtxt - FDSNWS station text file read and write support for ObsPy
    • Modules
    • obspy.io.stationxml - StationXML read and write support for ObsPy
    • Modules
    • obspy.io.xseed - (X)SEED and RESP support for ObsPy
    • Classes & Functions
    • Modules
    • Scripts

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_info
  • View page source

obspy.clients.seedlink.basic_client.Client.get_info

Client.get_info(network=None, station=None, location=None, channel=None, level='station', cache=True, warn_on_excluded_stations=False)[source]

Request available stations information from the seedlink server.

Supports fnmatch wildcards, e.g. * and ?, in network, station, location and channel.

>>> client = Client('rtserver.ipgp.fr')
>>> info = client.get_info(station="FDFM")
>>> print(info)
[('G', 'FDFM')]
>>> info = client.get_info(
...     station="FD?M", channel='*Z', level='channel')
>>> print(info)  
[('G', 'FDFM', '00', 'BHZ'), ('G', 'FDFM', '00', 'HHZ'),
 ('G', 'FDFM', '00', 'HNZ'), ('G', 'FDFM', '00', 'LHZ'),
 ('G', 'FDFM', '10', 'BHZ'), ('G', 'FDFM', '10', 'HHZ'),
 ('G', 'FDFM', '10', 'LHZ')]

Available station information is cached after the first request to the server, so use cache=False on subsequent requests if there is a need to force fetching new information from the server (should only concern programs running in background for a very long time).

Note

Stations/channels are excluded from the results for which the server indicates it is serving them in general but it also states no data are in ring buffer currently. If interested in these “no data” stations/channels, either set warn_on_excluded_stations=True which will show a warning message with excluded stations or use debug=True when initializing the client which will print the raw server seedlink INFO xml response which will show these stations listed with begin_seq and end_seq both with value '000000'.

Parameters:
  • network (str) – Network code. Supports fnmatch wildcards, e.g. * and ?.

  • station (str) – Station code. Supports fnmatch wildcards, e.g. * and ?.

  • location (str) – Location code. Supports fnmatch wildcards, e.g. * and ?.

  • channel (str) – Channel code. Supports fnmatch wildcards, e.g. * and ?.

  • cache (bool) – Subsequent function calls are cached, use cache=False to force fetching station metadata again from the server.

  • warn_on_excluded_stations (bool) – Whether to show a warning for stations that are excluded from the results because the server indicates there is no data currently available.

Return type:

list

Returns:

list of 2-tuples (or 4-tuples with level='channel') with network/station (network/station/location/channel, respectively) code combinations for which data is served by the server.

Next Previous

© Copyright 2012-2024, The ObsPy Development Team (devs@obspy.org). Last updated on 2024-10-15T15:19:16.

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