anomalize: Create an anomaly RasterStack

View source: R/anomalize.R

anomalizeR Documentation

Create an anomaly RasterStack

Description

The function creates an anomaly RasterStack either based on the overall mean of the original stack, or a supplied reference RasterLayer. For the creation of seasonal anomalies use deseason().

Usage

anomalize(x, reference = NULL, ...)

Arguments

x

a RasterStack

reference

an optional RasterLayer to be used as the reference

...

additional arguments passed to raster::calc() (and, in turn, raster::writeRaster()) which is used under the hood

Value

an anomaly RasterStack

See Also

deseason(), denoise(), raster::calc()

Examples

data(australiaGPCP)

aus_anom <- anomalize(australiaGPCP)

opar <- par(mfrow = c(1,2))
plot(australiaGPCP[[10]], main = "original")
plot(aus_anom[[10]], main = "anomalized")
par(opar)

environmentalinformatics-marburg/remote documentation built on June 12, 2025, 1:10 p.m.