data.loadTemperature: Loads a temperature vector

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/data.loadTemperature.R

Description

Loads a temperature vector of given length from a given day of a given year.

Usage

1
2
3
data.loadTemperature(year, temperature.year, temperature.previous.year, 
				from.previous.year.doy, length, position, 
				scale.factor=0.1)

Arguments

year

The year of the budburst doy which should be calculated.

temperature.year

A vector of temperature data (with length 365 or 366) of year given by ‘year’.

temperature.previous.year

A vector of temperature data (with length 365 or 366) of previous year.

from.previous.year.doy

The day the modelling starts (leafcolouring day of previous year).

length

The length of the resulting temperature vector.

position

The number of the grid-cell for which the temperatures should be loaded.

scale.factor

The down-scaling factor for the temperature data (needed if the data is scaled).

Details

Loads a temperature vector of given length from temperature data. The day of leafcolouring of the previous year should be given as starting day. The vector contains one temperature datapoint per day and should have a length of 300 or more to ensure a stable modelling process. Internal function used by method data.addTemperatures.

Value

A vector with temperature data for a given location and a given period.

Author(s)

Daniel Doktor, Maximilian Lange

See Also

data.addTemperatures,data.coordinates2gridcellnumber

Examples

1
2
3
4
5
6
  t.year <- as.matrix(rnorm(365, mean=10, sd=5))
  t.p.year <- as.matrix(rnorm(365, mean=9, sd=6))
  temperatures <- data.loadTemperature(year=2006,temperature.year=t.year, 
			temperature.previous.year=t.p.year, 
			from.previous.year.doy=210, length=365, 
			position=1, scale.factor=0.1)

phenmod documentation built on May 29, 2017, 11:37 a.m.