% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-diagnostic-tests-v04.R
\name{test_clay_decreases_with_depth}
\alias{test_clay_decreases_with_depth}
\title{Test that clay does NOT decrease abruptly with depth (nitic)}
\usage{
test_clay_decreases_with_depth(
  h,
  candidate_layers = NULL,
  max_drop_pct = 8,
  max_depth_cm = 50
)
}
\description{
WRB 2022 supplementary criterion for the nitic horizon: clay
percent should NOT show a maximum at the top of the B with abrupt
decrease below. Operationally: across the candidate layers,
clay_pct must not drop by more than \code{max_drop_pct} between
consecutive layers within 50 cm depth. Returns NA when clay is
missing in fewer than two candidate layers.
}
\keyword{internal}
