timeAggregateMonth: Aggregation function for TRMM data to monthly data

Description Usage Arguments Value Author(s) Examples

View source: R/timeAggregateMonth.R

Description

Creates monthly composites from daily trmm data

Usage

1
timeAggregateMonth(x, dates = NULL, FUN = sum, ...)

Arguments

x

filename, rasterStack, rasterBrick, or list of rasterLayers (filenames)

dates

(optional) A date vector (See trmm2date to extract dates from trmm filenames). If no date vector is supplied, the function will try to extract the time onformation from the z dimension of the raster object (if x is a RasterStack or RasterBrick)

FUN

The compositing function (sum by default)

...

Arguments to be passed to writeRaster

Value

RasterStack with time written to the z dimention

Author(s)

Loic Dutrieux

Examples

1
2
data(dailyTRMM)
monthly <- timeAggregateMonth(daily)

loicdtx/trmm documentation built on May 21, 2019, 7:38 a.m.