Learn R Programming

Interpol.T (version 2.1.1)

Mo.Th.Ra.: 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)

See Also

shape_calibration, Th_int_series

Examples

Run this code
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)

Run the code above in your browser using DataLab