obspy.io.alsep.core._read_pse
- _read_pse(file, headonly=False, year=None, ignore_error=False, **kwargs)[source]
Reads a PSE 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) – PSE 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.
year (int, optional) – Overwrite year if set. The PSE files: pse.a12.10.X requires this option due to invalid year. X is as follows: 91,92,93,94,95,97,98,102,103,104,106,107,108,109, and 111.
ignore_error (bool, optional) – Include error frames as much as possible if True.
- Return type:
- Returns:
A ObsPy Stream object.
Example
>>> from obspy import read >>> st = read("/path/to/pse.a15.1.2.mini")