obspy.taup.slowness_model.SlownessModel.to_slowness

SlownessModel.to_slowness(velocity, depth)[source]

Convert velocity at some depth to slowness.

Parameters:
  • velocity (float) – The velocity to convert, in km/s.

  • depth (float) – The depth (in km) at which to perform the calculation. Must be less than the radius of the planet defined in this model, or the result is undefined.

Returns:

The slowness, in s/km.

Return type:

float