tenDayLongTermMWMeans: Computes long-term ten-day moving window means of raster time...

Description Usage Arguments Value Examples

Description

tenDayLongTermMWMeans aggregates raster based time series (RasterBrick or RasterStack object, see: Raster-class) by computing the long-term mean values for a specified time period grouped by ten-day intervals. Ten-day intervals are constructed for each day of a year by sliding a moving window with a length of 10 days along the sequence of days of a year. For leap years, the corresponding ten day interval containing the 29 th February. In all other years, the interval reaches one day more in the future and the ten day interval for the 29 th February is the same as for the 28 th february.

Usage

1
2
tenDayLongTermMWMeans(variable, tstart, tend, cores = 10, timedate,
  clcall = NULL)

Arguments

variable

A RasterBrick or RasterStack object with values on a daily resolution.

tstart

Numeric value (four places) for the first year of the time period to consider as long-term interval, e.g. tstart = 1984.

tend

Numeric value (four places) for the last year of the time period to consider as long-term interval, e.g. tstart = 2014.

cores

The number of cores to be used in parallel computing.

timedate

A POSIXct vector containing the time information for each band/layer of variable.

clcall

A function passed to clusterCall.

Value

A list with the first element representing the aggregated raster time series with moving window ten-day mean values as a RasterBrick and the second element a POSIXct vector containing the date information (i.e. the days representing the start of each moving window interval).

Examples

1
#

henningte/herdersWDA documentation built on May 16, 2019, 3:11 p.m.