obspy.taup.velocity_model.VelocityModel.depth_at_top

VelocityModel.depth_at_top(layer)[source]

Return the depth at the top of the given layer.

Parameters:

layer (int or ndarray) – The layer number

Returns:

The depth of the top, in km.

Return type:

float or ndarray (dtype = float, shape equivalent to layer)