% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vlm-extract.R
\name{find_or_append_horizon}
\alias{find_or_append_horizon}
\title{Find or create a horizon row matching the given (top, bottom)}
\usage{
find_or_append_horizon(pedon, top_cm, bottom_cm)
}
\arguments{
\item{pedon}{A \code{\link{PedonRecord}}.}
}
\description{
For PDF-extracted horizons we may be merging into a pedon that
already has the horizons table from another source, or starting
from scratch. Strategy:
}
\details{
\enumerate{
  \item If the pedon already has horizons, find an existing row
        whose \code{(top_cm, bottom_cm)} match within 1 cm.
  \item If none matches, append a new row with the canonical
        schema and return the new index.
}
}
\keyword{internal}
