% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/season_utils.R
\name{detect_season}
\alias{detect_season}
\title{Detect meteorological season from date and latitude}
\usage{
detect_season(date, lat)
}
\arguments{
\item{date}{A \code{Date} or \code{POSIXct} object, or a character string coercible
to \code{Date} (e.g., \code{"2024-03-15"}).}

\item{lat}{Numeric. Latitude in decimal degrees. Positive = N hemisphere.}
}
\value{
A character string: one of \code{"winter"}, \code{"spring"}, \code{"summer"},
\code{"autumn"}.
}
\description{
Returns the meteorological season ("winter", "spring", "summer", "autumn")
for a given date and latitude. Hemisphere is inferred from the sign of
latitude (positive = Northern Hemisphere, negative = Southern Hemisphere).
}
\examples{
detect_season("2024-01-15", lat = 51.5)   # "winter" (UK)
detect_season("2024-07-15", lat = 51.5)   # "summer"
detect_season("2024-01-15", lat = -33.9)  # "summer" (Sydney)
}
