get_layer_nr#
- empymod.utils.get_layer_nr(inp, depth)[source]#
Get number of layer in which inp resides.
Note
If zinp is on a layer interface, the layer above the interface is chosen.
This check-function is called from one of the modelling routines in
empymod.model
. Consult these modelling routines for a detailed description of the input parameters.- Parameters:
- inplist of floats or arrays
Dipole coordinates (m)
- deptharray
Depths of layer interfaces.
- Returns:
- linpint or array_like of int
Layer number(s) in which inp resides (plural only if bipole).
- zinpfloat or array
inp[2] (depths).