weatherMean: Aggregates daily raster time series.

Description Usage Arguments Value Examples

Description

weatherMean aggregates raster based time series (RasterBrick or RasterStack object, see: Raster-class) by computing mean values along the time series (i.e. no long-term mean values) as monthly mean values, moving window ten-day interval mean values as defined in tenDayLongTermMWMeans and fixed ten-day interval mean values as defined in intervalMean.

Usage

1
2
weatherMean(variable, tstart = NULL, tend = NULL, resolution = "monthly",
  timedate, cores = 10, 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.

resolution

Character value indicating the temporal resolution of the mean values. If resolution = "fixedtendays", mean values will be computed for each fixed ten-day interval as defined in intervalMean. If resolution = "mwtendays", mean values will be computed for each moving window ten-day interval as defined in tenDayLongTermMWMeans. If resolution = "months", mean values will be computed for each month.

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 mean values as specified by resolution as a RasterBrick and the second element a POSIXct vector containing information on the aggregated time intervals as specified by resolution. For fixed ten day intervals, this is an integer vector with increasing values for each ten-day interval.

Examples

1
#

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