obspy.segy.segy.SUFile

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

Bases: object

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__ str(object) -> string
__module__ str(object) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

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.
_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
__str__ Prints some information about the SU file.

This Page