ObsPy Logo
1.4.0

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 - 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
      • 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
        • SLState
        • obspy.clients.seedlink.client.slstate.SLState.BUFSIZE
        • obspy.clients.seedlink.client.slstate.SLState.INFO_QUERY
        • obspy.clients.seedlink.client.slstate.SLState.KEEP_ALIVE_QUERY
        • obspy.clients.seedlink.client.slstate.SLState.NO_QUERY
        • obspy.clients.seedlink.client.slstate.SLState.SL_DATA
        • obspy.clients.seedlink.client.slstate.SLState.SL_DOWN
        • obspy.clients.seedlink.client.slstate.SLState.SL_UP
        • obspy.clients.seedlink.client.slstate.SLState.append_bytes
        • obspy.clients.seedlink.client.slstate.SLState.bytes_remaining
        • obspy.clients.seedlink.client.slstate.SLState.get_packet
        • obspy.clients.seedlink.client.slstate.SLState.increment_send_pointer
        • obspy.clients.seedlink.client.slstate.SLState.is_end
        • obspy.clients.seedlink.client.slstate.SLState.is_error
        • obspy.clients.seedlink.client.slstate.SLState.pack_data_buffer
        • obspy.clients.seedlink.client.slstate.SLState.packet_available
        • obspy.clients.seedlink.client.slstate.SLState.packet_is_info
    • Modules
    • obspy.clients.syngine - 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.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.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.client.slstate.SLState
  • View page source

obspy.clients.seedlink.client.slstate.SLState

class SLState[source]

Bases: object

Class to manage SeedLinkConnection state.

Variables:
  • SL_DOWN – Connection state down.

  • SL_UP – Connection state up.

  • SL_DATA – Connection state data.

  • state – Connection state.

  • NO_QUERY – INFO query state NO_QUERY.

  • INFO_QUERY – INFO query state INFO_QUERY.

  • KEEP_ALIVE_QUERY – INFO query state KEEP_ALIVE_QUERY.

  • query_mode – INFO query state.

  • BUFSIZE – Size of receiving buffer (default is 8192).

  • databuf – Data buffer for received packets.

  • recptr – Receive pointer for databuf.

  • sendptr – Send pointer for databuf.

  • expect_info – Flag to indicate if an INFO response is expected.

  • netto_trig – Network timeout trigger.netto_trig

  • netdly_trig – Network re-connect delay trigger.

  • keepalive_trig – Send keepalive trigger.

  • previous_time – Time stamp of last state update.

  • netto_time – Network timeout time stamp.

  • netdly_time – Network re-connect delay time stamp.

  • keepalive_time – Keepalive time stamp.

Attributes

BUFSIZE

INFO_QUERY

KEEP_ALIVE_QUERY

NO_QUERY

SL_DATA

SL_DOWN

SL_UP

Public Methods

append_bytes

Appends bytes to the receive buffer after the last received data.

bytes_remaining

Return number of bytes remaining in receiving buffer.

get_packet

Returns last received packet.

increment_send_pointer

Increments the send pointer by size of one packet.

is_end

Check for SeedLink END packet.

is_error

Check for SeedLink ERROR packet.

pack_data_buffer

Packs the buffer by removing all sent packets and shifting remaining bytes to beginning of buffer.

packet_available

Check for full packet available to send.

packet_is_info

Check for SeedLink INFO packet.

Special Methods

SLState.__delattr__(name, /)

Implement delattr(self, name).

SLState.__dir__()

Default dir() implementation.

SLState.__eq__(value, /)

Return self==value.

SLState.__format__(format_spec, /)

Default object formatter.

SLState.__ge__(value, /)

Return self>=value.

SLState.__getattribute__(name, /)

Return getattr(self, name).

SLState.__gt__(value, /)

Return self>value.

SLState.__hash__()

Return hash(self).

SLState.__init__()[source]
SLState.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

SLState.__le__(value, /)

Return self<=value.

SLState.__lt__(value, /)

Return self<value.

SLState.__ne__(value, /)

Return self!=value.

SLState.__new__(**kwargs)
SLState.__reduce__()

Helper for pickle.

SLState.__reduce_ex__(protocol, /)

Helper for pickle.

SLState.__repr__()

Return repr(self).

SLState.__setattr__(name, value, /)

Implement setattr(self, name, value).

SLState.__sizeof__()

Size of object in memory, in bytes.

SLState.__str__()

Return str(self).

SLState.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

Next Previous

© Copyright 2012-2022, The ObsPy Development Team (devs@obspy.org). Last updated on 2022-11-21T14:30:24.

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