obspy.taup.slowness_layer.create_from_vlayer

create_from_vlayer(vLayer, isPWave, radiusOfEarth=6371, isSpherical=True)[source]

Compute the slowness layer from a velocity layer.

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