obspy.taup.velocity_model.VelocityModel.layer_number_below

VelocityModel.layer_number_below(depth)[source]

Find the layer containing the given depth(s).

Note this returns the lower layer if the depth happens to be at a layer boundary.

Parameters:

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

Returns:

The layer number for the specified depth.

Return type:

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