obspy.taup.tau_branch.TauBranch

class TauBranch(top_depth=0, bot_depth=0, is_p_wave=False)[source]

Bases: future.types.newobject.newobject

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__ unicode(object=’‘) -> unicode object
__module__ str(object=’‘) -> string
__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.
next
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

__eq__
__format__ default object formatter
__init__
__long__
__native__ Hook for the future.utils.native() function
__new__
__nonzero__
__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().
__unicode__