obspy.taup.slowness_model.SlownessModel.findDepth_from_depths

SlownessModel.findDepth_from_depths(ray_param, topDepth, botDepth, isPWave)[source]

Find depth corresponding to a slowness between two given depths.

The given depths are converted to layer numbers before calling findDepth_from_layers().

Parameters:
  • ray_param (float) Slowness (aka ray parameter) to find, in s/km.
  • topDepth (float) Top depth to search, in km.
  • botDepth (float) Bottom depth to search, in km.
  • isPWave (bool) True if P wave or False for S wave.
Returns:

Depth (in km) corresponding to the desired slowness.

Return type:

float

Raises SlownessModelError:
 

If topCriticalLayer > botCriticalLayer because there are no layers to search, or if there is an increase in slowness, i.e., a negative velocity gradient, that just balances the decrease in slowness due to the spherical Earth, or if the ray parameter p is not contained within the specified layer range.