class TauModel(s_mod, radius_of_planet, is_spherical=True, cache=None, debug=False, skip_calc=False)[source]

Bases: builtins.object

Provides storage of all the TauBranches comprising a model.


__doc__ str(object=’‘) -> str
__module__ str(object=’‘) -> str
__weakref__ list of weak references to the object (if defined)

Public Methods

calcTauIncFrom DEPRECATED: ‘calcTauIncFrom’ has been renamed to
calc_tau_inc_from Calculates tau for each branch within a slowness model.
depth_correct Called in TauPTime. Computes a new tau model for a source at depth
deserialize Deserialize model from numpy npz binary file.
findBranch DEPRECATED: ‘findBranch’ has been renamed to
find_branch Finds the branch that either has the depth as its top boundary, or strictly contains the depth.
getBranchDepths DEPRECATED: ‘getBranchDepths’ has been renamed to
getTauBranch DEPRECATED: ‘getTauBranch’ has been renamed to
get_branch_depths Return an array of the depths that are boundaries between branches.
loadFromDepthCache DEPRECATED: ‘loadFromDepthCache’ has been renamed to
serialize Serialize model to numpy npz binary file.
splitBranch DEPRECATED: ‘splitBranch’ has been renamed to
split_branch Returns a new TauModel with the branches containing depth split at

Private Methods


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


Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__new__ Create and return a new object.
__reduce__ helper for pickle
__reduce_ex__ helper for pickle
__sizeof__ size of object in memory, in bytes
__subclasshook__ Abstract classes can override this to customize issubclass().