obspy.io.segy.segy._read_su

_read_su(file, endian=None, unpack_headers=False, headonly=False)[source]

Reads a Seismic Unix (SU) file and returns a SUFile object.

Parameters:
  • file Open file like object or a string which will be assumed to be a filename.
  • endian (str) String that determines the endianness of the file. Either ‘>’ for big endian or ‘<’ for little endian. If it is None, obspy.io.segy will try to autodetect the endianness. The endianness is always valid for the whole file.
  • unpack_header (bool) Determines whether or not all headers will be unpacked during reading the file. Has a huge impact on the memory usage and the performance. They can be unpacked on-the-fly after being read. Defaults to False.
  • headonly (bool) Determines whether or not the actual data records will be unpacked. Useful if one is just interested in the headers. Defaults to False.