obspy.segy.segy.SEGYTraceHeader¶
- class SEGYTraceHeader(header=None, endian=u'>', unpack_headers=False)[source]¶
Bases: future.types.newobject.newobject
Convenience class that handles reading and writing of the trace headers.
Attributes
__dict__ __doc__ unicode(string [, encoding[, errors]]) -> object __module__ str(object) -> string __weakref__ list of weak references to the object (if defined) Public Methods
next write Writes the header to an open file like object. Private Methods
_createEmptyTraceHeader Init the trace header with zeros. _readTraceHeader Reads the 240 byte long header and unpacks all values into _repr_pretty_ Special Methods
__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. __long__ __native__ Hook for the future.utils.native() function __nonzero__ __str__ Just returns all header values. __unicode__