obspy.taup.slowness_layer.bullenDepthFor

bullenDepthFor(layer, ray_param, radiusOfEarth)[source]

Finds the depth for a ray parameter within this layer.

Uses a Bullen interpolant, Ar^B. Special case for botP == 0 or botDepth == radiusOfEarth as these cause division by 0; use linear interpolation in this case.

Parameters:
  • layer (ndarray (shape = (1, ), dtype = SlownessLayer)) The layer to check.
  • ray_param (float) The ray paramater to use for calculation, in s/km.
  • radiusOfEarth (float) The radius (in km) of the Earth to use.
Returns:

The depth (in km) for the specified ray parameter.

Return type:

float