obspy.io.sac.arrayio.read_sac_ascii

read_sac_ascii(source, headonly=False)[source]

Read a SAC ASCII/Alphanumeric file.

Parameters:
  • source (str or file) Full path or File-like object from a SAC ASCII file on disk.
  • headonly (bool) If headonly is True, return the header arrays not the data array. Note, the entire file is still read in if headonly=True.
Returns:

The float, integer, and string header arrays, and data array, in that order. Data array will be None if headonly is True.

Return type:

numpy.ndarray