class SEG2[source]

Bases: builtins.object

Class to read and write SEG 2 formatted files. The main reason this is realized as a class is for the ease of passing the various parameters from one function to the next.

Do not change the file_pointer attribute while using this class. It will be used to keep track of which parts have been read yet and which not.


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

Public Methods

parse_free_form Parse the free form section stored in free_form_str and save it in
parse_next_trace Parse the next trace in the trace pointer list and return a Trace
read_file Reads the following file and will return a Stream object. If
read_file_descriptor_block Handles the reading of the file descriptor block and the free form

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().