obspy.taup.slowness_layer.create_from_vlayer

create_from_vlayer(v_layer, is_p_wave, radius_of_planet, is_spherical=True)[source]

Compute the slowness layer from a velocity layer.

Parameters:
  • v_layer (numpy.ndarray, dtype = VelocityLayer) The velocity layer to convert.
  • is_p_wave (bool) Whether this velocity layer is for compressional/P (True) or shear/S (False) waves.
  • radius_of_planet (float) The radius of the planet to use, in km.
  • is_spherical (bool) Whether the model is spherical. Non-spherical models are not currently supported.