powered by
The function calculates anomalies of a RasterStack by supplying a suitable seasonal window. E. g. to create monthly anomalies of a raster stack of 12 layers per year, use cycle.window = 12.
cycle.window = 12
# S4 method for RasterStackBrick deseason(x, cycle.window = 12L, use.cpp = FALSE, filename = "", ...)# S4 method for numeric deseason(x, cycle.window = 12L)
# S4 method for numeric deseason(x, cycle.window = 12L)
If x is a Raster* object, a deseasoned RasterStack; else a deseasoned numeric vector.
x
Raster*
RasterStack
numeric
An Raster* object or, alternatively, a numeric time series.
integer, defaults to 12. The window for the creation of the anomalies.
integer
12
logical, defaults to FALSE. Determines whether or not to use Rcpp functionality. Only applies if x is a Raster* object.
logical
FALSE
character. Output filename (optional).
character
Additional arguments passed on to raster::writeRaster(), only considered if filename is specified.
raster::writeRaster()
filename
anomalize(), denoise()
anomalize()
denoise()
data("australiaGPCP") aus_dsn <- deseason(australiaGPCP, 12) opar <- par(mfrow = c(1,2)) plot(australiaGPCP[[1]], main = "original") plot(aus_dsn[[1]], main = "deseasoned") par(opar)
Run the code above in your browser using DataLab