Each sounding is modelled as flat layers. The forward model computes the resistivity transform of the layers (Pekeris recursion) and the ideal Schlumberger apparent resistivity with a 101-point digital filter for the Hankel transform (Key, 2009, values as published in empymod); a real reading with its own MN spacing, and Wenner, are modelled exactly by integrating that curve between the potential electrodes. It reproduces the textbook two-layer image series to better than one part in ten million.
The inversion is damped least squares (Levenberg–Marquardt) on the logarithms of resistivity and thickness, started from the data and from nudged starts. It tries two to five layers and keeps the simplest model that fits nearly as well as the best. Layers are then labelled with typical resistivity ranges for hard-rock (basement) or sedimentary ground, and each sounding is scored from the thickness of water-bearing ground, the depth to hard rock, the resistivity of the main water layer, clay, a fractured zone above the rock and the fit.
Everything runs in the browser; the worked example is synthetic (made by the same forward model with 3 % noise) and says so.
By KAI Water & Energy (Kampala, Uganda). Reviewed 17 November 2026. A first look for planning: a hydrogeologist confirms every drilling decision.