obspy.taup.slowness_model.SlownessModel¶
-
class
SlownessModel
(v_mod, min_delta_p=0.1, max_delta_p=11, max_depth_interval=115, max_range_interval=0.04363323129985824, max_interp_error=0.05, allow_inner_core_s=True, slowness_tolerance=1e-16, skip_model_creation=False)[source]¶ Bases:
object
Storage and methods for generating slowness-depth pairs.
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined) Public Methods
add_slowness
Add a ray parameter to the slowness sampling for the given wave type. approx_distance
Approximate distance for ray turning at the bottom of a layer. coarse_sample
Create a coarse slowness sampling of the velocity model (v_mod). create_sample
Create slowness-depth layers from a velocity model. depth_in_fluid
Determine if the given depth is contained within a fluid zone. depth_in_high_slowness
Determine if depth and slowness are within a high slowness zone. depth_inc_check
Check that no slowness layer is too thick. distance_check
Check that no slowness layer is too wide or undersampled. find_critical_points
Find all critical points within a velocity model. find_depth_from_depths
Find depth corresponding to a slowness between two given depths. find_depth_from_layers
Find depth corresponding to a slowness p between two velocity layers. fix_critical_points
Reset the slowness layers that correspond to critical points. get_min_ray_param
Find minimum slowness, turning or reflected, at or above a depth. get_min_turn_ray_param
Find minimum slowness, turning but not reflected, at or above a depth. get_num_layers
Number of slowness layers. get_slowness_layer
Return the Slowness_layer of the requested wave type. interpolate
Interpolate slowness to depth within a layer. layer_number_above
Find the index of the slowness layer that contains the given depth. layer_number_below
Find the index of the slowness layer that contains the given depth. layer_time_dist
Calculate time and distance for a ray passing through a layer. ray_param_inc_check
Check that no slowness layer’s ray parameter interval is too large. split_layer
Split a slowness layer into two slowness layers. to_slowness
Convert velocity at some depth to slowness. validate
Perform consistency check on the slowness model. Private Methods
Warning
Private methods are mainly for internal/developer use and their API might change without notice.
_fix_other_layers
Fix other wave layers when a split is made. Special Methods
__dir__
Default dir() implementation. __format__
Default object formatter. __init__
Initialize self. __init_subclass__
This method is called when a class is subclassed. __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().