obspy.taup.slowness_model.SlownessModel.interpolate

SlownessModel.interpolate(p, top_velocity, top_depth, slope)[source]

Interpolate slowness to depth within a layer.

We interpolate assuming that velocity is linear within this interval.

All parameters must be of the same shape.

Parameters:
  • p (float or ndarray) – The slowness to interpolate, in s/km.

  • top_velocity (float or ndarray) – The velocity (in km/s) at the top of the layer.

  • top_depth (float or ndarray) – The depth (in km) for the top of the layer.

  • slope (float or ndarray) – The slope (in (km/s)/km) for velocity versus depth.

Returns:

The depth (in km) of the slowness below the layer boundary.

Return type:

float or ndarray