obspy.taup.tau_branch.TauBranch¶
- class TauBranch(top_depth=0, bot_depth=0, is_p_wave=False)[source]¶
Bases: builtins.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__ str(object=’‘) -> str __hash__ __module__ str(object=’‘) -> str __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 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__ __format__ default object formatter __init__ __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__ __subclasshook__ Abstract classes can override this to customize issubclass().