obspy.clients.seedlink.slpacket.SLPacket
- class SLPacket(data=None, offset=None)[source]
Bases:
object
Class to hold and decode a SeedLink packet.
- Variables
TYPE_SLINFT – Packet type is terminated info packet.
TYPE_SLINF – Packet type is non-terminated info packet.
SLTERMINATE – Terminate flag - connection was closed by the server or the termination sequence completed.
SLNOPACKET – No packet flag - indicates no data available.
SLERROR – Error flag - indicates server reported an error.
SLHEADSIZE – SeedLink packet header size.
SLRECSIZE – Mini-SEED record size.
SIGNATURE – SeedLink header signature.
INFOSIGNATURE – SeedLink INFO packet signature.
ERRORSIGNATURE – SeedLink ERROR signature.
ENDSIGNATURE – SeedLink END signature.
slhead – The SeedLink header.
msrecord – The MiniSEED record.
Attributes
Public Methods
Get the MiniSEED payload, parsed as string. |
|
Special Methods
- SLPacket.__delattr__(name, /)
Implement delattr(self, name).
- SLPacket.__dir__()
Default dir() implementation.
- SLPacket.__eq__(value, /)
Return self==value.
- SLPacket.__format__(format_spec, /)
Default object formatter.
- SLPacket.__ge__(value, /)
Return self>=value.
- SLPacket.__getattribute__(name, /)
Return getattr(self, name).
- SLPacket.__gt__(value, /)
Return self>value.
- SLPacket.__hash__()
Return hash(self).
- SLPacket.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- SLPacket.__le__(value, /)
Return self<=value.
- SLPacket.__lt__(value, /)
Return self<value.
- SLPacket.__ne__(value, /)
Return self!=value.
- SLPacket.__new__(**kwargs)
- SLPacket.__reduce__()
Helper for pickle.
- SLPacket.__reduce_ex__(protocol, /)
Helper for pickle.
- SLPacket.__repr__()
Return repr(self).
- SLPacket.__setattr__(name, value, /)
Implement setattr(self, name, value).
- SLPacket.__sizeof__()
Size of object in memory, in bytes.
- SLPacket.__str__()
Return str(self).
- SLPacket.__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).