obsplus.get_waveform_client¶
- obsplus.get_waveform_client(waveforms)[source]¶
Extract a waveform client from various inputs.
- Parameters:
waveforms (
Union
[WaveformClient
,str
,Path
,Trace
,Stream
]) –- Any of the following:
A path to an obspy-readable waveform file
A path to a directory of obspy-readable waveform files
A obspy.Stream instance
An instance of
WaveBank
Any other object that has a get_waveforms method
- Raises:
TypeError – If a waveform client cannot be determined from the input.
- Return type:
Notes
If the output does not define a get_waveform_bulk method one will be added.