obspy.io.seg2.seg2.SEG2¶
-
class
SEG2
[source]¶ 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__
__module__
__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 attrib_dict. parse_next_trace
Parse the next trace in the trace pointer list and return a Trace object. read_file
Reads the following file and will return a Stream object. read_file_descriptor_block
Handles the reading of the file descriptor block and the free form section following it. Special Methods
__dir__
Default dir() implementation. __format__
Default object formatter. __init__
Initialize self. __init_subclass__
This method is called when a class is subclassed. __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().