obspy.taup.slowness_model.SlownessModel.get_slowness_layer

SlownessModel.get_slowness_layer(layer, is_p_wave)[source]

Return the Slowness_layer of the requested wave type.

This is not meant to be a clone!

Parameters
  • layer (int or ndarray (dtype = int)) – The number of the layer(s) to return.

  • is_p_wave (bool) – Whether to return the P layer (True) or the S layer (False).

Returns

The slowness layer(s).

Return type

ndarray (dtype = obspy.taup.helper_classes.SlownessLayer, shape = layer_num.shape)