obspy.io.segy.segy.SEGYTrace.write

SEGYTrace.write(file, data_encoding=None, endian=None)[source]

Writes the Trace to a file like object.

If endian or data_encoding is set, these values will be enforced. Otherwise use the values of the SEGYTrace object.