% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-diagnostic-tests.R
\name{test_gleyic_features}
\alias{test_gleyic_features}
\title{Test for gleyic redoximorphic features within top 50 cm}
\usage{
test_gleyic_features(
  h,
  max_top_cm = 50,
  min_redox_pct = 5,
  candidate_layers = NULL,
  max_chroma = 2
)
}
\arguments{
\item{h}{Numeric threshold or option (see Details).}

\item{max_top_cm}{Numeric threshold or option (see Details).}

\item{min_redox_pct}{Numeric threshold or option (see Details).}

\item{candidate_layers}{Numeric threshold or option (see Details).}

\item{max_chroma}{Numeric threshold; gleyic-hue path requires
\code{munsell_chroma_moist <= max_chroma} (default 2).}
}
\description{
Two evidence paths (any qualifies):
\enumerate{
  \item \strong{Mottle percent} (primary): explicit
        \code{redoximorphic_features_pct} >= \code{min_redox_pct}
        (default 5\\%) within \code{max_top_cm} (default 50). This
        is the v0.2 path.
  \item \strong{Gleyic Munsell hue} (v0.9.61, secondary): the
        horizon Munsell hue matches gleyic patterns (N / 5GY / 10G /
        5BG / 10B etc.) AND chroma <= 2. Used when mottle percent
        is not reported. Common in BDsolos exports where
        surveyors fill matiz/valor/croma but leave mottle quantity
        empty.
}
Either path qualifies. If neither is determinable for any candidate
layer (mottle pct AND hue both NA), returns NA. If both are
determinable but neither passes, returns FALSE.
}
