obspy.taup.tau_model.TauModel¶
- class TauModel(s_mod, radius_of_planet, is_spherical=True, cache=None, debug=False, skip_calc=False)[source]¶
Bases: future.types.newobject.newobject
Provides storage of all the TauBranches comprising a model.
Attributes
__dict__ __doc__ unicode(object=’‘) -> unicode object __module__ str(object=’‘) -> string __weakref__ list of weak references to the object (if defined) Public Methods
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. find_branch Finds the branch that either has the depth as its top boundary, or strictly contains the depth. from_file get_branch_depths Return an array of the depths that are boundaries between branches. get_tau_branch load_from_depth_cache next serialize Serialize model to numpy npz binary file. split_branch Returns a new TauModel with the branches containing depth split at validate Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_load_from_depth_cache Special Methods
__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__