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: object

Attributes

__dict__

__doc__

__module__

__weakref__

list of weak references to the object (if defined)

Public Methods

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.

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).

fix_discontinuity_depths

Reset depths of major discontinuities.

get_discontinuity_depths

Return the depths of discontinuities within the velocity model.

is_discontinuity

layer_number_above

Find the layer containing the given depth(s).

layer_number_below

Find the layer containing the given depth(s).

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.

__init_subclass__

This method is called when a class is subclassed.

__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__

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().