obspy.io.segy.segy.SEGYFile

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

Bases: builtins.object

Class that internally handles SEG Y files.

Attributes

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

Public Methods

write Write a SEG 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_segy_file_object Creates an empty SEGYFile object.
_read_headers Reads the textual and binary file headers starting at the current file
_read_textual_header Reads the textual header.
_read_traces Reads the actual traces starting at the current file pointer position to the end of the file.
_repr_pretty_
_write Writes SEG Y to a file like object.
_write_textual_header Write the textual header in various encodings.

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Class that internally handles SEG Y files.
__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__ Prints some information about the SEG Y file.
__subclasshook__ Abstract classes can override this to customize issubclass().