% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/spectra-munsell.R
\name{fill_munsell_from_spectra}
\alias{fill_munsell_from_spectra}
\title{Fill missing Munsell colors on a PedonRecord from Vis-NIR spectra}
\usage{
fill_munsell_from_spectra(pedon, overwrite = FALSE, verbose = TRUE)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}} that has
\code{$spectra$vnir} populated (rows = horizons, cols =
wavelengths).}

\item{overwrite}{If \code{TRUE}, overwrite existing Munsell
measurements. Default \code{FALSE} (only fills
horizons whose Munsell is currently NA).}

\item{verbose}{If \code{TRUE} (default), prints a per-horizon
summary.}
}
\value{
The pedon, invisibly. Provenance entries with
        \code{source = "predicted_spectra"} are appended.
}
\description{
High-level helper that runs
\code{\link{predict_munsell_from_spectra}} per horizon over the
Vis-NIR spectra in \code{pedon$spectra$vnir} and writes the
resulting hue / value / chroma back to the matching horizon rows
via \code{pedon$add_measurement(..., source = "predicted_spectra")}.
}
\details{
This is the operational answer to the v0.9.35 Argissolo color
confusion: when surveyor Munsell colors are missing and the user
has Vis-NIR (e.g. from OSSL), call this helper, then re-run
\code{\link{classify_sibcs}} -- the v0.9.45
"color-undetermined" fallback will lift, and the classification
will descend to subordem / grande grupo / subgrupo with proper
\code{evidence_grade}.
}
