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 codestation (
str) – The station codelocation (
str) – Location codechannel (
str) – Channel codestarttime (
UTCDateTime|None) – Starttime for queryendtime (
UTCDateTime|None) – 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 (
Sequence[tuple[str,str,str,str,str|UTCDateTime|float|datetime64|Timestamp,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