obspy.taup.tau_branch.TauBranch¶
-
class
TauBranch
(top_depth=0, bot_depth=0, is_p_wave=False)[source]¶ Bases:
object
Provides storage and methods for distance, time and tau increments for a branch. A branch is a group of layers bounded by discontinuities or reversals in slowness gradient.
Attributes
__dict__
__doc__
__hash__
__module__
__weakref__
list of weak references to the object (if defined)
Public Methods
Calculates tau for this branch, between slowness layers top_layer_num and bot_layer_num, inclusive.
Generates a new tau branch by “subtracting” the given tau branch from this tau branch (self).
Inserts the distance, time, and tau increment for the slowness sample given to the branch.
Called from TauPPath to calculate ray paths.
Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
Create instance object from a structured array used in serialization.
Try to resize an array inplace.
Store all attributes for serialization in a structured array.
Special Methods
Default dir() implementation.
Return self==value.
Default object formatter.
Initialize self.
This method is called when a class is subclassed.
Create and return a new object.
Helper for pickle.
Helper for pickle.
Size of object in memory, in bytes.
Return str(self).
Abstract classes can override this to customize issubclass().