obspy.io.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__
__module__
__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. __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__
Print some information about the trace. __subclasshook__
Abstract classes can override this to customize issubclass().