intervalMean: Computes long-term fixed ten-day interval means of raster...

Description Usage Arguments Value Examples

Description

intervalMean 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. For each month of a year, three fixed ten-day interval is constructed with the first reaching from the first to the 10th day, the second from the 11th to the 20th and the third from the 21 to the 28th/29th/30th/31th day of the month, depending on its length.

Usage

1
intervalMean(variable, tstart, tend, timedate, cores, 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.

timedate

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

cores

The number of cores to be used in parallel computing.

clcall

A function passed to clusterCall.

Value

A list with the first element representing the aggregated raster time series with fixed ten-day interval mean values as a RasterBrick and the second element a POSIXct vector containing information on the sequence of ten-day intervals (i.e. an integer value from 1 to 36).

Examples

1
#

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