obsplus.waveforms.get_waveforms module

Module for adding the client-like “get_waveforms” to the Stream class

obsplus.waveforms.get_waveforms.get_waveforms(stream, network='*', station='*', location='*', channel='*', starttime=None, endtime=None)[source]

A subset of the Client.get_waveforms method.

Simply makes successive calls to Stream.select and Stream.trim under the hood. Matching is available on all str parameters.

Parameters:
  • stream (Stream) – A stream object.

  • network (str) – The network code

  • station (str) – The station code

  • location (str) – Location code

  • channel (str) – Channel code

  • starttime (Optional[UTCDateTime]) – Starttime for query

  • endtime (Optional[UTCDateTime]) – Endtime for query

Return type:

Stream

obsplus.waveforms.get_waveforms.get_waveforms_bulk(stream, bulk, **kwargs)[source]

Get a large number of waveforms with a bulk request.

Parameters:
  • stream (Stream) – A stream object.

  • bulk (Union[Sequence[Tuple[str, str, str, str, Union[str, UTCDateTime, float, datetime64, Timestamp], Union[str, UTCDateTime, float, datetime64, Timestamp]]], DataFrame]) – A list of any number of tuples containing the following: (network, station, location, channel, starttime, endtime).

Return type:

Stream