data.combine.timeseries {phenmod}R Documentation

Create combined timeseries

Description

Creates combined timeseries out of the dataset by using clusters of stations.

Usage

data.combine.timeseries(dataset, clusters, 
			silent=FALSE, out2File=FALSE, 
			minimalClusterSize=5)

Arguments

dataset

A dataset created by data.extract containing the information that should be used to generate the combined timeseries.

clusters

A list of station clusters generated by data.combine.clusters.

silent

A boolean value determining wether the function should generate output messages or not.

out2File

A boolean value determining wether the output will be stored in log-files.

minimalClusterSize

An integer value determining the minimal number of stations in a cluster to be included in combining process.

Details

The combined timeseries are created by using the function pheno.lad.fit of package ‘pheno’. This process eliminates outliers and smooths the data.

Value

A dataset containing the combined timeseries as a data.frame with same columns like a data.frame created by data.extract.

Author(s)

Daniel Doktor, Maximilian Lange

References

Schaber J., Badeck F. (2002). Evaluation of methods for the combination of phenological time series and outlier detection. Tree Physiology, 22:973-982

See Also

pheno.lad.fit, data.extract, data.combine.stationNet, data.combine.clusters

Examples

  ## load extracted observations as created by 'data.extract'
  data(extractedObs)

  ## create station net
  stations.net <- data.combine.stationNet(extractedObs, 
				range=5000, alt.range=50, silent=FALSE, 
				out2File=FALSE)

  ## search clusters in station net
  clusters <- data.combine.clusters(extractedObs, 
			stations.net, shuffle=TRUE, tries=3, 
			silent=FALSE, out2File=FALSE)

  ## combine timeseries
  data.combined <- data.combine.timeseries(extractedObs, 
				clusters, out2File=FALSE)

[Package phenmod version 1.2-7 Index]