obspy.io.seg2.seg2.SEG2

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.

Attributes

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

Public Methods

parseFreeForm DEPRECATED: ‘parseFreeForm’ has been renamed to
parseNextTrace DEPRECATED: ‘parseNextTrace’ has been renamed to
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
readFile DEPRECATED: ‘readFile’ has been renamed to
readFileDescriptorBlock DEPRECATED: ‘readFileDescriptorBlock’ has been renamed to
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
__init__
__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().