spatAggregate: Spatially aggregates raster time series within geometries.

Description Usage Arguments Value Examples

Description

spatAggregate performs aggregation of raster based time series (RasterBrick or RasterStack object, see: Raster-class) within certain spatial entity (polygon geometry) applying over from package sp on all raster layers (time instances) within a given time interval.

Usage

1
spatAggregate(variable, spatialentity, tstart, tend, fn = "mean")

Arguments

variable

A RasterBrick or RasterStack object.

spatialentity

A SpatialPolygonsDataFrame of the spatial entity to iaggregate within..

tstart

Start of the time interval during which to perform aggregation given as character values in the format "yyyy-mm-dd".

tend

End of the time interval during which to perform aggregation given as character values in the format "yyyy-mm-dd".

fn

Function to be used for aggregation. One of mean, min or max.

Value

A data frame containing the aggregated vaules of each raster layer (time instance) within each spatial entity

Examples

1
#

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