This function generates hourly temperatures from daily maximum and minimum values, using the method proposed by Linvill (1990), which also requires sunset and sunrise calculation for each day in the series. Sunset and sunrise hours for a location are internally estimated using the function solar_times from the latitude and the day of the year (DOY) using the equations by Spencer (1971) and Almorox et al. (2005).
a data frame containing the columns Year, Month, Day, Tmax and Tmin. Data must not contain any gap.
the latitude of the site, in decimal degrees.
a dataframe containing the columns Date, Year, Month, Day, DOY, Hour, Sunrise (hour of sunrise), Sunset (hour of sunset), Daylength and Temp (hourly temperature).
Carlos Miranda, firstname.lastname@example.org
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, 1465-1471.
Linvill DE, 1990. Calculating chilling hours and chill units from daily maximum and minimum temperature observations. HortScience 25, 14-16.
Spencer JW, 1971. Fourier series representation of the position of the Sun. Search 2, 172.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.