obspy.taup.velocity_model.VelocityModel.evaluate_above

VelocityModel.evaluate_above(depth, prop)[source]

Return the value of the given material property at the given depth(s).

Note this returns the value at the bottom of the upper layer if the depth happens to be at a layer boundary.

See also

evaluate_below()

Parameters:
  • depth (float or ndarray) – The depth to find, in km.

  • prop (str) –

    The material property to evaluate. One of:

    • p

      Compressional (P) velocity (km/s)

    • s

      Shear (S) velocity (km/s)

    • r or d

      Density (in g/cm^3)

Returns:

The value of the given material property

Return type:

float or ndarray (dtype = float, shape equivalent to depth)