obspy.taup.slowness_model.SlownessModel.approx_distance

SlownessModel.approx_distance(slowness_turn_layer, p, is_p_wave)[source]

Approximate distance for ray turning at the bottom of a layer.

Generates approximate distance, in radians, for a ray from a surface source that turns at the bottom of the given slowness layer.

Parameters
  • slowness_turn_layer (int) – The number of the layer at which the ray should turn.

  • p (float) – The slowness to calculate, in s/km.

  • is_p_wave (bool) – Whether to use the P (True) or S (False) wave.

Returns

The time (in s) and distance (in rad) the ray travels.

Return type

ndarray (dtype = obspy.taup.helper_classes.TimeDist, shape = (slowness_turn_layer, ))