make_hourly_temps(latitude, year_file)
Luedeling E, Girvetz EH, Semenov MA and Brown PH, 2011. Climate change affects winter chill for temperate fruit and nut trees. PLoS ONE 6(5), e20155.
The temperature interpolation is described in
Linvill DE, 1990. Calculating chilling hours and chill units from daily maximum and minimum temperature observations. HortScience 25(1), 14-16.
Calculation of sunrise, sunset and daylength was done according to
Spencer JW, 1971. Fourier series representation of the position of the Sun. Search 2(5), 172.
Almorox J, Hontoria C and Benito M, 2005. Statistical validation of daylength definitions for estimation of global solar radiation in Toledo, Spain. Energy Conversion and Management 46(9-10), 1465-1471)
weather<-fix_weather(KA_weather)
THourly<-make_hourly_temps(50.4,weather$weather)
#in most cases, you're probably better served by stack_hour_temperatures
Run the code above in your browser using DataLab