# Generate hourly temperatures
library(magrittr)
library(dplyr)
library(lubridate)
Tudela_Sel <- Tudela_DW %>% filter(Tudela_DW$Year<=2002)
Tudela_HT <- hourly_temps(Tudela_Sel,42.13132)
# Calculate chill as chill hours, starting on DOY 305
Chill_h <- chill_hours(Tudela_HT,305)
Run the code above in your browser using DataLab