obspy.io.segy.segy.SEGYTrace¶
- class SEGYTrace(file=None, data_encoding=4, endian=u'>', unpack_headers=False, filesize=None, headonly=False)[source]¶
Bases: future.types.newobject.newobject
Convenience class that internally handles a single SEG Y trace.
Attributes
__dict__ __doc__ unicode(object=’‘) -> unicode object __module__ str(object=’‘) -> string __weakref__ list of weak references to the object (if defined) Public Methods
next 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
__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. __long__ __native__ Hook for the future.utils.native() function __new__ __nonzero__ __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(). __unicode__