Learn R Programming

climtrends (version 1.0.6)

VDTR: annual mean of the absolute day-to-day differences of DTR (VDTR)

Description

VDTR returns the annual mean of the absolute day-to-day differences of the diurnal temperature range (VDTR).

Usage

VDTR(yearDF,datecol,valcol)

Arguments

yearDF
matrix with diurnal temperature range data
datecol
column with dates
valcol
column with diurnal temperature range data

Value

absolute day-to-day differences of the diurnal temperature range (VDTR).

Source

Wijngaard, J. B., Klein Tank, A. M. G. and Können, G. P. (2003), Homogeneity of 20th century European daily temperature and precipitation series. Int. J. Climatol., 23: 679–692. doi: 10.1002/joc.906

References

Wijngaard, J. B., Klein Tank, A. M. G. and Können, G. P. (2003), Homogeneity of 20th century European daily temperature and precipitation series. Int. J. Climatol., 23: 679–692. doi: 10.1002/joc.906

Examples

Run this code
# data from the ECA station series of Eelde (The Netherlands) from 1900 to 2000
EtmgegData<-ReadEtmgegFile('etmgeg_280.txt',c(2,12,13,15))
until2000<-EtmgegData[which(EtmgegData[,1]<'2001-01-01'),] # zr are the data until 2000
until2000[,2:4]<-until2000[,2:4]/10 # divide by 10 to get a scale of 1 degrees Celsius
# calculate DTR
u2000DTR<-until2000[,-2] #get rid of the mean
u2000DTR[,2]<-u2000DTR[,3]-u2000DTR[,2] #DTR=MAX-MIN
u2000DTR<-u2000DTR[,-3]
u2000mDTR<-YearMeanFromDay(u2000DTR,1,2)
# calculate VDTR
u2000VDTR<-VDTR(u2000DTR,1,2)

Run the code above in your browser using DataLab