obspy.io.alsep.core._read_wth

_read_wth(file, headonly=False, ignore_error=False, **kwargs)[source]

Reads a WTH file and returns ObsPy Stream object.

Warning

This function should NOT be called directly, it registers via the ObsPy read() function, call this instead.

Parameters:
  • file (str or file-like object) – WTH file to be read.

  • headonly (bool, optional) – If set to True, read only the head. This is most useful for scanning available data in huge (temporary) data sets.

  • ignore_error (bool, optional) – Include error frames as much as possible if True.

Return type:

Stream

Returns:

A ObsPy Stream object.

Example

>>> from obspy import read
>>> st = read("/path/to/wth.1.5.mini")