obspy.io.segy.segy.SEGYFile._write_textual_header

SEGYFile._write_textual_header(file)[source]

Write the textual header in various encodings. The encoding will depend on self.textual_header_encoding. If self.textual_file_header is too small it will be padded with zeros. If it is too long or an invalid encoding is specified an exception will be raised.