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:
object
Class that internally handles SEG Y files.
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined)
Public Methods
Write a SEG Y file to file which is either a file like object with a write method or a filename string.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Tries to automatically determine the endianness of the file at hand.
Creates an empty SEGYFile object.
Reads the textual and binary file headers starting at the current file pointer position.
Reads the textual header.
Reads the actual traces starting at the current file pointer position to the end of the file.
Writes SEG Y to a file like object.
Write the textual header in various encodings.
Special Methods
Default dir() implementation.
Default object formatter.
Class that internally handles SEG Y files.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Prints some information about the SEG Y file.
Abstract classes can override this to customize issubclass().