obspy.taup.velocity_model.VelocityModel.layer_number_above

VelocityModel.layer_number_above(depth)[source]

Find the layer containing the given depth(s).

Note this returns the upper 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)