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

calc_time_dist
create_branch Calculates tau for this branch, between slowness layers top_layer_num and bot_layer_num, inclusive.
difference Generates a new tau branch by “subtracting” the given tau branch from this tau branch (self).
insert Inserts the distance, time, and tau increment for the slowness sample given to the branch.
path Called from TauPPath to calculate ray paths.
shift_branch

Private Methods

Warning

Private methods are mainly for internal/developer use and their API might change without notice.

_from_array Create instance object from a structured array used in serialization.
_robust_resize Try to resize an array inplace.
_to_array Store all attributes for serialization in a structured array.

Special Methods

__dir__ Default dir() implementation.
__eq__ Return self==value.
__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.
__str__ Return str(self).
__subclasshook__ Abstract classes can override this to customize issubclass().