obspy.io.ascii.core._parse_data

_parse_data(data, data_type)[source]

Simple function to read data contained in a StringIO object to a NumPy array.

Parameters:
  • data (io.StringIO) – The actual data.

  • data_type (str) – The data type of the expected data. Currently supported are ‘INTEGER’ and ‘FLOAT’.