Bases: 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.
Attributes
__dict__ | |
__doc__ | str(object) -> string |
__module__ | str(object) -> string |
__weakref__ | list of weak references to the object (if defined) |
Public Methods
parseFreeForm | Parse the free form section stored in free_form_str and save it in |
parseNextTrace | Parse the next trace in the trace pointer list and return a Trace |
readFile | Reads the following file and will return a Stream object. If |
readFileDescriptorBlock | Handles the reading of the file descriptor block and the free form |
Special Methods
__init__ |