obspy.taup.velocity_model.VelocityModel

class VelocityModel(model_name, radius_of_planet, min_radius, max_radius, moho_depth, cmb_depth, iocb_depth, is_spherical, layers=None)[source]

Bases: builtins.object

Attributes

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

Public Methods

depthAtBottom DEPRECATED: ‘depthAtBottom’ has been renamed to
depthAtTop DEPRECATED: ‘depthAtTop’ has been renamed to
depth_at_bottom Return the depth at the bottom of the given layer.
depth_at_top Return the depth at the top of the given layer.
evaluateAbove DEPRECATED: ‘evaluateAbove’ has been renamed to
evaluateBelow DEPRECATED: ‘evaluateBelow’ has been renamed to
evaluate_above Return the value of the given material property at the given depth(s).
evaluate_below Return the value of the given material property at the given depth(s).
fixDisconDepths DEPRECATED: ‘fixDisconDepths’ has been renamed to
fix_discontinuity_depths Reset depths of major discontinuities.
getDisconDepths DEPRECATED: ‘getDisconDepths’ has been renamed to
get_discontinuity_depths Return the depths of discontinuities within the velocity model.
is_discontinuity
layerNumberAbove DEPRECATED: ‘layerNumberAbove’ has been renamed to
layerNumberBelow DEPRECATED: ‘layerNumberBelow’ has been renamed to
layer_number_above Find the layer containing the given depth(s).
layer_number_below Find the layer containing the given depth(s).
readTVelFile DEPRECATED: ‘readTVelFile’ has been renamed to
readVelocityFile DEPRECATED: ‘readVelocityFile’ has been renamed to
read_nd_file Read in a velocity model from a “nd” ASCII text file.
read_tvel_file Read in a velocity model from a “tvel” ASCII text file.
read_velocity_file Read in a velocity file.
validate Perform internal consistency checks on the velocity model.

Special Methods

__dir__ default dir() implementation
__format__ default object formatter
__init__ Object for storing a seismic planet model.
__len__
__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().