% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-diagnostic-tests.R
\name{test_ec_concentration}
\alias{test_ec_concentration}
\title{Test for electrical conductivity above threshold (per layer)}
\usage{
test_ec_concentration(
  h,
  min_dS_m = 15,
  alkaline_min_dS_m = NA_real_,
  alkaline_min_pH = 8.5,
  candidate_layers = NULL
)
}
\arguments{
\item{h}{Horizons table.}

\item{min_dS_m}{Primary EC threshold (default 15).}

\item{alkaline_min_dS_m}{Optional alkaline-path EC threshold
(default \code{NA}: alkaline path disabled).}

\item{alkaline_min_pH}{Required pH(H2O) for the alkaline path
(default 8.5; only used when \code{alkaline_min_dS_m} is set).}

\item{candidate_layers}{Optional layer index restriction.}
}
\description{
Default 15 dS/m (salic horizon, WRB 2022 Ch 3.1.20). The WRB salic
horizon also accepts an alkaline alternate: EC \\>= 8 dS/m if
pH(H2O) \\>= 8.5. Pass \code{alkaline_min_dS_m = 8} and
\code{alkaline_min_pH = 8.5} to enable that path -- a layer is then
\"qualifying\" if it satisfies the primary OR the alkaline gate. The
\code{path} field in each \code{details} entry records which gate
carried the layer.
}
