obspy.io.seg2.seg2.SEG2

class SEG2[source]

Bases: future.types.newobject.newobject

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__ unicode(object=’‘) -> unicode object
__module__ str(object=’‘) -> string
__weakref__ list of weak references to the object (if defined)

Public Methods

next
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

__format__ default object formatter
__init__
__long__
__native__ Hook for the future.utils.native() function
__new__
__nonzero__
__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().
__unicode__