obspy.clients.seedlink.basic_client.Client
- class Client(server, port=18000, timeout=20, debug=False)[source]
Bases:
object
SeedLink request client.
This client is intended for requests of specific, finite time windows. To work with continuous realtime data streams please see
SLClient
andEasySeedLinkClient
.- Parameters:
Public Methods
Request available stations information from the seedlink server. |
|
Request waveform data from the seedlink server. |
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
- Client._init_client()[source]
Make fresh connection to seedlink server
Should be done before any request to server, since SLClient keeps things like multiselect etc for subsequent requests
- Client._multiselect_request(multiselect, starttime, endtime)[source]
Make a multiselect request to underlying seedlink client
Multiselect string is one or more comma separated network/station/location/channel combinations as defined by seedlink standard, e.g. “NETWORK_STATION:LOCATIONCHANNEL,NETWORK_STATION:LOCATIONCHANNEL” where location+channel may contain ‘?’ characters but should be exactly 5 characters long.
- Return type:
- Client._packet_handler(count, slpack)[source]
Custom packet handler that accumulates all waveform packets in a stream.
Special Methods
- Client.__delattr__(name, /)
Implement delattr(self, name).
- Client.__dir__()
Default dir() implementation.
- Client.__eq__(value, /)
Return self==value.
- Client.__format__(format_spec, /)
Default object formatter.
- Client.__ge__(value, /)
Return self>=value.
- Client.__getattribute__(name, /)
Return getattr(self, name).
- Client.__gt__(value, /)
Return self>value.
- Client.__hash__()
Return hash(self).
- Client.__init__(server, port=18000, timeout=20, debug=False)[source]
Initializes the SeedLink request client.
- Client.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- Client.__le__(value, /)
Return self<=value.
- Client.__lt__(value, /)
Return self<value.
- Client.__ne__(value, /)
Return self!=value.
- Client.__new__(**kwargs)
- Client.__reduce__()
Helper for pickle.
- Client.__reduce_ex__(protocol, /)
Helper for pickle.
- Client.__repr__()
Return repr(self).
- Client.__setattr__(name, value, /)
Implement setattr(self, name, value).
- Client.__sizeof__()
Size of object in memory, in bytes.
- Client.__str__()
Return str(self).
- Client.__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).