## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment  = "#>",
  fig.width = 7, fig.height = 4,
  message = FALSE, warning = FALSE
)

## ----setup--------------------------------------------------------------------
library(cumba)

## ----params-------------------------------------------------------------------
data(cumbaParameters)
str(cumbaParameters, max.level = 1)
cumbaParameters$Tbase

## ----data---------------------------------------------------------------------
data(tomatoFoggia)
names(tomatoFoggia)
head(tomatoFoggia$weather)
head(tomatoFoggia$irrigation)
head(tomatoFoggia$production)

## ----run, eval = FALSE--------------------------------------------------------
# out <- cumba_experiment(
#   weather       = tomatoFoggia$weather,
#   param         = cumbaParameters,
#   irrigation_df = tomatoFoggia$irrigation,
#   estimateRad   = TRUE,
#   estimateET0   = TRUE,
#   fullOut       = FALSE
# )
# 
# head(out)

