longtermMeans: Calculate long-term means from a 'RasterStack'

View source: R/longtermMeans.R

longtermMeansR Documentation

Calculate long-term means from a 'RasterStack'

Description

Calculate long-term means from an input 'RasterStack' (or 'RasterBrick') object. Ideally, the number of input layers should be divisable by the supplied cycle.window. For instance, if x consists of monthly layers, cycle.window should be a multiple of 12.

Usage

longtermMeans(x, cycle.window = 12L)

Arguments

x

A 'RasterStack' (or 'RasterBrick') object.

cycle.window

'integer'. See deseason.

Value

If cycle.window equals nlayers(x) (which obviously doesn't make much sense), a 'RasterLayer' object; else a 'RasterStack' object.

Author(s)

Florian Detsch

See Also

deseason.

Examples

data("australiaGPCP")

longtermMeans(australiaGPCP)


environmentalinformatics-marburg/remote documentation built on July 5, 2023, 4:36 p.m.