% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vlm-extract.R
\name{apply_site_extraction}
\alias{apply_site_extraction}
\title{Apply a parsed site-extraction result to a pedon}
\usage{
apply_site_extraction(pedon, parsed, overwrite = FALSE)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}
}
\description{
Site metadata is not under provenance control (PedonRecord$site is
a free-form list, not a column with an authority-ranked log). We
therefore set the missing fields directly and emit a provenance
entry against horizon_idx 0 (sentinel for "site-level") only when
there is at least one horizon to anchor it.
}
\details{
For attributes that already exist in \code{pedon$site}, we leave
them alone unless \code{overwrite = TRUE}. The VLM contract
(extracted_vlm < measured) is preserved by attribute origin: a
user-built site list is treated as authoritative; an empty / NULL
field can be filled by the VLM.
}
\keyword{internal}
