obspy.io.seg2.seg2.SEG2
- class SEG2[source]
Bases:
object
Class to read 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.
Public Methods
Parse the free form section stored in free_form_str and save it in attrib_dict. |
|
Parse the next trace in the trace pointer list and return a Trace object. |
|
Reads the following file and will return a Stream object. |
|
Handles the reading of the file descriptor block and the free form section following it. |
Special Methods
- SEG2.__delattr__(name, /)
Implement delattr(self, name).
- SEG2.__dir__()
Default dir() implementation.
- SEG2.__eq__(value, /)
Return self==value.
- SEG2.__format__(format_spec, /)
Default object formatter.
- SEG2.__ge__(value, /)
Return self>=value.
- SEG2.__getattribute__(name, /)
Return getattr(self, name).
- SEG2.__gt__(value, /)
Return self>value.
- SEG2.__hash__()
Return hash(self).
- SEG2.__init_subclass__()
This method is called when a class is subclassed.
The default implementation does nothing. It may be overridden to extend subclasses.
- SEG2.__le__(value, /)
Return self<=value.
- SEG2.__lt__(value, /)
Return self<value.
- SEG2.__ne__(value, /)
Return self!=value.
- SEG2.__new__(**kwargs)
- SEG2.__reduce__()
Helper for pickle.
- SEG2.__reduce_ex__(protocol, /)
Helper for pickle.
- SEG2.__repr__()
Return repr(self).
- SEG2.__setattr__(name, value, /)
Implement setattr(self, name, value).
- SEG2.__sizeof__()
Size of object in memory, in bytes.
- SEG2.__str__()
Return str(self).
- SEG2.__subclasshook__()
Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).