obspy.segy.segy.SUFile

class SUFile(file=None, endian=None, unpack_headers=False, headonly=False)[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(string [, encoding[, errors]]) -> 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

_autodetectEndianness Tries to automatically determine the endianness of the file at hand.
_createEmptySUFileObject Creates an empty SUFile object.
_readTraces 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

__init__
param file:A file like object with the file pointer set at the
__long__
__native__ Hook for the future.utils.native() function
__nonzero__
__str__ Prints some information about the SU file.
__unicode__