obspy.io.segy.segy.SEGYFile.write

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

Write a SEG Y file to file which is either a file like object with a write method or a filename string.

If data_encoding or endian is set, these values will be enforced.