R: Production of daily means from hourly temperature series
daily_mean
R Documentation
Production of daily means from hourly temperature series
Description
The function works on a list of hourly temperature
series. The hourly list is the output of the
interpolation function Th_int, called iteratively
to produce a list where each component represents one
interpolated series.
Usage
daily_mean(hourly_list, series_names = NULL)
Arguments
hourly_list
the list of hourly temperatures
series_names
names of the serie to be averaged (if
NULL (default): all series)
Value
A list of daily averaged series
Note
The first element of hourly_list must be a data
frame named "Date" and its columns "year", "month", "day"
(a fourth column ("hours") is not used in this function)
Eccel, E., 2010: What we can ask to hourly temperature
recording. Part II: hourly interpolation of temperatures
for climatology and modelling. Italian Journal of
Agrometeorology XV(2):45-50
Eccel, E., 2010: What we can ask to hourly temperature
recording. Part I: statistical vs. meteorological meaning
of minimum temperature. Italian Journal of
Agrometeorology XV(2):41-43.
See Also
Th_int_list
Examples
data(Trentino_hourly_T)
# generates daily means for series T0001 and T0129:
Tm_list <- daily_mean(hourly_list = Th_int_list, series_names = c("T0001", "T0129"))
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(Interpol.T)
Loading required package: date
Loading required package: chron
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/Interpol.T/daily_mean.Rd_%03d_medium.png", width=480, height=480)
> ### Name: daily_mean
> ### Title: Production of daily means from hourly temperature series
> ### Aliases: daily_mean
>
> ### ** Examples
>
> data(Trentino_hourly_T)
> # generates daily means for series T0001 and T0129:
> Tm_list <- daily_mean(hourly_list = Th_int_list, series_names = c("T0001", "T0129"))
[1] Now processing T0001
[1] Now processing T0129
>
>
>
>
>
> dev.off()
null device
1
>