check_model#

empymod.utils.check_model(depth, res, aniso, epermH, epermV, mpermH, mpermV, xdirect, verb)[source]#

Check the model: depth and corresponding layer parameters.

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:
depthlist

Absolute layer interfaces z (m); #depth = #res - 1 (excluding +/- infinity).

resarray_like

Horizontal resistivities rho_h (Ohm.m); #res = #depth + 1.

anisoarray_like

Anisotropies lambda = sqrt(rho_v/rho_h) (-); #aniso = #res.

epermH, epermVarray_like

Relative horizontal/vertical electric permittivities epsilon_h/epsilon_v (-); #epermH = #epermV = #res.

mpermH, mpermVarray_like

Relative horizontal/vertical magnetic permeabilities mu_h/mu_v (-); #mpermH = #mpermV = #res.

xdirectbool, optional

If True and source and receiver are in the same layer, the direct field is calculated analytically in the frequency domain, if False it is calculated in the wavenumber domain.

verb{0, 1, 2, 3, 4}

Level of verbosity.

Returns:
deptharray

Depths of layer interfaces, adds -infty at beginning if not present.

resarray

As input, checked for size.

anisoarray

As input, checked for size. If None, defaults to an array of ones.

epermH, epermVarray_like

As input, checked for size. If None, defaults to an array of ones.

mpermH, mpermVarray_like

As input, checked for size. If None, defaults to an array of ones.

isfullspacebool

If True, the model is a fullspace (res, aniso, epermH, epermV, mpermM, and mpermV are in all layers the same).