obspy.io.ascii.core._read_tspair

_read_tspair(filename, headonly=False, **kwargs)[source]

Reads a ASCII TSPAIR file and returns an ObsPy Stream object.

Warning

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

Parameters
  • filename (str) – ASCII file to be read.

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

Return type

Stream

Returns

A ObsPy Stream object.

Example

>>> from obspy import read
>>> st = read('/path/to/tspair.ascii')