Convenience class that internally handles a single SEG Y trace.
Parameters:
file Open file like object with the file pointer of the
beginning of a trace. If it is None, an empty trace will be
created.
data_encoding
The data sample format code as defined in the
binary file header:
1:
4 byte IBM floating point
2:
4 byte Integer, two’s complement
3:
2 byte Integer, two’s complement
4:
4 byte Fixed point with gain
5:
4 byte IEEE floating point
8:
1 byte Integer, two’s complement
Defaults to 4.
big_endian Bool. True means the header is encoded in big endian
and False corresponds to a little endian header.
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.
filesize Integer. Filesize of the file. If not given it will be
determined using fstat which is slow.
headonly Bool. Determines whether or not the actual data
records will be read and unpacked. Has a huge impact on memory
usage. Data can be read and unpacked on-the-fly after reading the
file. Defaults to False.