obspy.io.segy.segy.SEGYTrace¶
- class SEGYTrace(file=None, data_encoding=4, endian='>', unpack_headers=False, filesize=None, headonly=False)[source]¶
Bases: builtins.object
Convenience class that internally handles a single SEG Y trace.
Attributes
__dict__ __doc__ str(object=’‘) -> str __module__ str(object=’‘) -> str __weakref__ list of weak references to the object (if defined) Public Methods
to_obspy_trace Convert the current Trace to an ObsPy Trace object. write Writes the Trace to a file like object. Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_create_empty_trace Creates an empty trace with an empty header. _read_trace Reads the complete next header starting at the file pointer at self.file. _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__ Convenience class that internally handles a single SEG Y trace. __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__ Print some information about the trace. __subclasshook__ Abstract classes can override this to customize issubclass().