% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/agroclimatic.R
\name{ck_huglin}
\alias{ck_huglin}
\title{Huglin Heliothermal Index}
\usage{
ck_huglin(tmin, tmax, dates, lat)
}
\arguments{
\item{tmin}{Numeric vector of daily minimum temperatures (degrees C).}

\item{tmax}{Numeric vector of daily maximum temperatures (degrees C).}

\item{dates}{Date vector of the same length as \code{tmin}.}

\item{lat}{Numeric. Latitude in decimal degrees (used to determine
hemisphere and day-length coefficient).}
}
\value{
A data frame with columns \code{period}, \code{value}, \code{index}, and \code{unit}.
}
\description{
The Huglin index is used in viticulture to characterise the thermal
potential of a region for grape growing. It is computed over the growing
season (April 1 to September 30 in the Northern Hemisphere; October 1 to
March 31 in the Southern Hemisphere).
}
\examples{
dates <- seq(as.Date("2024-04-01"), as.Date("2024-09-30"), by = "day")
set.seed(42)
tmin <- rnorm(length(dates), mean = 12, sd = 3)
tmax <- tmin + runif(length(dates), 8, 15)
ck_huglin(tmin, tmax, dates, lat = 45)
}
\references{
Huglin, P. (1978). Nouveau mode d'evaluation des possibilites
heliothermiques d'un milieu viticole. \emph{Comptes Rendus de l'Academie
d'Agriculture de France}, 64, 1117-1126.
}
