obspy.io.segy.segy.SUFile

class SUFile(file=None, endian=None, unpack_headers=False, headonly=False, read_traces=True)[source]

Bases: future.types.newobject.newobject

Convenience class that internally handles Seismic Unix data files. It currently can only read IEEE 4 byte float encoded SU data files.

Attributes

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

Public Methods

next
write Write a SU Y file to file which is either a file like object with a

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_autodetect_endianness Tries to automatically determine the endianness of the file at hand.
_create_empty_su_file_object Creates an empty SUFile object.
_read_traces Reads the actual traces starting at the current file pointer position to the end of the file.
_repr_pretty_
_write Write a SU Y file to file which is either a file like object with a

Special Methods

__format__ default object formatter
__init__
param file:A file like object with the file pointer set at the
__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__ Prints some information about the SU file.
__subclasshook__ Abstract classes can override this to customize issubclass().
__unicode__