obspy.clients.seedlink.client.slnetstation.SLNetStation
- class SLNetStation(net, station, selectors, seqnum, timestamp)[source]
Bases:
object
Class to hold a SeedLink stream selectors for a network/station.
- Variables
MAX_SELECTOR_SIZE – Maximum selector size.
net – The network code.
station – The station code.
selectors – SeedLink style selectors for this station.
seqnum – SeedLink sequence number of last packet received.
btime – Time stamp of last packet received.
Attributes
Public Methods
Appends a selectors String to the current selectors for this SLNetStation. |
|
Returns the selectors as an array of Strings |
|
Returns the time stamp in SeedLink string format: "year,month,day,hour,minute,second" |
Special Methods
- SLNetStation.__delattr__(name, /)
Implement delattr(self, name).
- SLNetStation.__dir__()
Default dir() implementation.
- SLNetStation.__eq__(value, /)
Return self==value.
- SLNetStation.__format__(format_spec, /)
Default object formatter.
- SLNetStation.__ge__(value, /)
Return self>=value.
- SLNetStation.__getattribute__(name, /)
Return getattr(self, name).
- SLNetStation.__gt__(value, /)
Return self>value.
- SLNetStation.__hash__()
Return hash(self).
- SLNetStation.__init__(net, station, selectors, seqnum, timestamp)[source]
Creates a new instance of SLNetStation.
- Parameters
net – network code.
station – station code.
selectors – selectors for this net/station, null if none.
seqnum – SeedLink sequence number of last packet received, -1 to start at the next data.
timestamp – SeedLink time stamp in a UTCDateTime format for last packet received, null for none.
- SLNetStation.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- SLNetStation.__le__(value, /)
Return self<=value.
- SLNetStation.__lt__(value, /)
Return self<value.
- SLNetStation.__ne__(value, /)
Return self!=value.
- SLNetStation.__new__(**kwargs)
- SLNetStation.__reduce__()
Helper for pickle.
- SLNetStation.__reduce_ex__(protocol, /)
Helper for pickle.
- SLNetStation.__repr__()
Return repr(self).
- SLNetStation.__setattr__(name, value, /)
Implement setattr(self, name, value).
- SLNetStation.__sizeof__()
Size of object in memory, in bytes.
- SLNetStation.__str__()
Return str(self).
- SLNetStation.__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).