obspy.io.segy.segy.SEGYTraceHeader¶
-
class
SEGYTraceHeader
(header=None, endian='>', unpack_headers=False)[source]¶ Bases:
object
Convenience class that handles reading and writing of the trace headers.
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined) Public Methods
write
Writes the header to an open file like object. Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_create_empty_trace_header
Init the trace header with zeros. _read_trace_header
Reads the 240 byte long header and unpacks all values into corresponding class attributes. _repr_pretty_
Special Methods
__dir__
Default dir() implementation. __format__
Default object formatter. __getattr__
This method is only called if the attribute is not found in the usual places (i.e. __init__
Will take the 240 byte of the trace header and unpack all values with the given endianness. __init_subclass__
This method is called when a class is subclassed. __new__
Create and return a new object. __reduce__
Helper for pickle. __reduce_ex__
Helper for pickle. __sizeof__
Size of object in memory, in bytes. __str__
Just returns all header values. __subclasshook__
Abstract classes can override this to customize issubclass().