obspy.io.segy.core._write_su

_write_su(stream, filename, byteorder=None, **kwargs)[source]

Writes a Seismic Unix (SU) file from given ObsPy Stream object.

Warning

This function should NOT be called directly, it registers via the the write() method of an ObsPy Stream object, call this instead.

Parameters:
  • stream (Stream) The ObsPy Stream object to write.
  • filename (str) Name of file to write.
  • byteorder (str or None) Determines the endianness of the file. Either '>' for big endian or '<' for little endian. If is None, it will either be the endianness of the first Trace or if that is also not set, it will be big endian. A mix between little and big endian for the headers and traces is currently not supported.

This function will automatically set the data encoding field of the binary file header so the user does not need to worry about it.