monthlyLongTermMeans: Computes long-term monthly means of raster time series.

Description Usage Arguments Value Examples

Description

monthlyLongTermMeans 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 months.

Usage

1
2
monthlyLongTermMeans(variable, tstart, tend, cores = 12, timedate,
  clcall = NULL)

Arguments

variable

A RasterBrick or RasterStack object with values on a sub-monthly 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 daily mean values as a RasterBrick and the second element a POSIXct vector containing the date information (i.e. the days).

Examples

1
#

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