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.

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

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

Return type:

ndarray (dtype = TimeDist, shape = (slowness_turn_layer, ))