Last data update: 2014.03.03

R: Creates a table of mean monthly "daily thermal range" (dtr)
Mo.Th.Ra.R Documentation

Creates a table of mean monthly "daily thermal range" (dtr)

Description

Creates a table of mean monthly DTR (difference between maximum and minimum temperature) over the series' period, to use a reference for establishing the exponent "z" of the night stretch of the interpolation curve.

Usage

  Mo.Th.Ra.(Tmin, Tmax, name, min_mo.length = 21,
    silent = FALSE)

Arguments

Tmin

a table of 4 named columns, the first are year, month, day, the 4th is minimum temperature. The column names "month" and "T" are mandatory

Tmax

same for Tmax

name

name of the series dtr is calculated for

min_mo.length

minimum number of days necessary to calculate monthly dtr values

silent

logical. If TRUE no warning is issued

Value

A vector of 12 dtr values (1 for January, ... 12 for December)

Author(s)

Emanuele Eccel, Emanuele Cordano emanuele.eccel@iasma.it

See Also

shape_calibration, Th_int_series

Examples

data(Trentino_hourly_T)
id<-"T0001"
Tmin<-data.frame(Tn[,1:3], T=Tn[,id])
Tmax<-data.frame(Tx[,1:3], T=Tx[,id])
dtr <- Mo.Th.Ra.(Tmin = Tmin, Tmax = Tmax, name = id)

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/Mo.Th.Ra..Rd_%03d_medium.png", width=480, height=480)
> ### Name: Mo.Th.Ra.
> ### Title: Creates a table of mean monthly "daily thermal range" (dtr)
> ### Aliases: Mo.Th.Ra.
> 
> ### ** Examples
> 
> data(Trentino_hourly_T)
> id<-"T0001"
> Tmin<-data.frame(Tn[,1:3], T=Tn[,id])
> Tmax<-data.frame(Tx[,1:3], T=Tx[,id])
> dtr <- Mo.Th.Ra.(Tmin = Tmin, Tmax = Tmax, name = id)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>