obspy.taup.slowness_model.SlownessModel.layer_number_below
- SlownessModel.layer_number_below(depth, is_p_wave)[source]
Find the index of the slowness layer that contains the given depth.
Note that if the depth is a layer boundary, it returns the deeper of the two or possibly more (since total reflections are zero thickness layers) layers.
See also
- Parameters
- Returns
The slowness layer containing the requested depth.
- Return type
- Raises
SlownessModelError – If no layer in the slowness model contains the given depth.