obspy.io.segy.segy.SEGYTrace._read_trace

SEGYTrace._read_trace(unpack_headers=False, headonly=False)[source]

Reads the complete next header starting at the file pointer at self.file.

Parameters:
  • unpack_headers (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 read and unpacked. Has a huge impact on memory usage. Data will not be unpackable on-the-fly after reading the file. Defaults to False.