obspy.segy.segy.SEGYTrace

class SEGYTrace(file=None, data_encoding=4, endian='>', unpack_headers=False, filesize=None, headonly=False)[source]

Bases: object

Convenience class that internally handles a single SEG Y trace.

Attributes

__dict__
__doc__ str(object) -> string
__module__ str(object) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

write Writes the Trace to a file like object.

Private Methods

_createEmptyTrace Creates an empty trace with an empty header.
_readTrace Reads the complete next header starting at the file pointer at self.file.

Special Methods

__getattr__ This method is only called if the attribute is not found in the usual places (i.e.
__init__ Convenience class that internally handles a single SEG Y trace.
__str__ Print some information about the trace.

This Page