Learn R Programming

phenmod (version 1.2-7)

tsm.solve: Temperature-Sum-Model

Description

Applies a temperature-sum-model to a given dataset.

Usage

tsm.solve(params, data, silent=FALSE, out2File=FALSE)

Arguments

params

The parameters for the temperature-sum-model as list or vector with following order: \(T_b\), \(F^*\). \(T_b\) is the threshold temperature. Above this value, temperatures are summed for calculating the development rate. \(F^*\) is the threshold development rate. If the development rate reached this threshold, the phase occurs.

data

A dataset containing the station ID, the station geographic and the Gauss-Krueger-coordinates of the station, the altitude of the station, the year and the julian day of the budburst and the leafcolouring, outlier information for budburst and leafcolouring and temperature data for modelling. Can be created by using the function data.main.

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.

Value

A dataset containing the values of the origin dataset and additionally the modelled budburst days.

Details

Applies a temperature-sum-model with given parameters to a given dataset.

References

Menzel, A. (1997). Phaenologie von Waldbaeumen unter sich aendernden Klimabedingungen - Auswertung der Beobachtungen in den Internationalen Phaenologischen Gaerten und Moeglichkeiten der Modellierung von Phaenodaten. Thesis. Forstwissenschaftliche Fakultaet der Uni Muenchen. Muenchen, Universitaet Muenchen.

See Also

data.main

Examples

Run this code
# NOT RUN {
  ## load preprocessed data
  data(dataFinal)

  ## set or load params
  params <- c(0, 100)

  ## apply model
  result <- tsm.solve(params, dataFinal, 
		silent=FALSE, out2File=FALSE)

# }

Run the code above in your browser using DataLab