obspy.io.ascii.core

Simple ASCII time series formats

  • SLIST, a ASCII time series format represented with a header line followed by a sample lists (see also SLIST format description):

    TIMESERIES BW_RJOB__EHZ_D, 6001 samples, 200 sps, 2009-08-24T00:20:03.000000, SLIST, INTEGER,
    288 300 292 285 265 287
    279 250 278 278 268 258
    ...
    
  • TSPAIR, a ASCII format where data is written in time-sample pairs (see also TSPAIR format description):

    TIMESERIES BW_RJOB__EHZ_D, 6001 samples, 200 sps, 2009-08-24T00:20:03.000000, TSPAIR, INTEGER,
    2009-08-24T00:20:03.000000  288
    2009-08-24T00:20:03.005000  300
    2009-08-24T00:20:03.010000  292
    2009-08-24T00:20:03.015000  285
    2009-08-24T00:20:03.020000  265
    2009-08-24T00:20:03.025000  287
    ...
    
copyright:The ObsPy Development Team (devs@obspy.org)
license:GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

Private Functions

Warning

Private functions are mainly for internal/developer use and their API might change without notice.

_determine_dtype
type custom_fmt:
 str
_format_header
_is_slist Checks whether a file is ASCII SLIST format.
_is_tspair Checks whether a file is ASCII TSPAIR format.
_parse_data Simple function to read data contained in a StringIO object to a NumPy
_read_slist Reads a ASCII SLIST file and returns an ObsPy Stream object.
_read_tspair Reads a ASCII TSPAIR file and returns an ObsPy Stream object.
_write_slist Writes a ASCII SLIST file.
_write_tspair Writes a ASCII TSPAIR file.