
Last chance! 50% off unlimited learning
Sale ends in
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
.
# S4 method for RasterStackBrick
deseason(x, cycle.window = 12L, use.cpp = FALSE, filename = "", ...)# S4 method for numeric
deseason(x, cycle.window = 12L)
If x
is a Raster*
object, a deseasoned
RasterStack
; else a deseasoned numeric
vector.
An Raster*
object or, alternatively, a numeric
time
series.
integer
, defaults to 12
. The window for the
creation of the anomalies.
logical
, defaults to FALSE
. Determines whether
or not to use Rcpp functionality. Only applies if x
is a
Raster*
object.
character
. Output filename (optional).
Additional arguments passed on to raster::writeRaster()
, only
considered if filename
is specified.
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