obspy.clients.earthworm.client.Client

class Client(host, port, timeout=None, debug=False)[source]

Bases: object

A Earthworm Wave Server client.

Parameters
  • host (str) – Host name of the remote Earthworm Wave Server server.

  • port (int) – Port of the remote Earthworm Wave Server server.

  • timeout (int, optional) – Seconds before a connection timeout is raised (default is None).

  • debug (bool, optional) – Enables verbose output of the connection handling (default is False).

Public Methods

get_availability

Gets a list of data available on the server.

get_waveforms

Retrieves waveform data from Earthworm Wave Server and returns an ObsPy Stream object.

save_waveforms

Writes a retrieved waveform directly into a file.

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__(host, port, timeout=None, debug=False)[source]

Initializes a Earthworm Wave Server client.

See obspy.clients.earthworm.client.Client for all parameters.

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).