tempTrend | R Documentation |
Function to calculate temporal trend from a raster series of a climatic variable. This trend is to be used for the calculation of the gradient-based climate velocity using gVoCC.
tempTrend(r, th)
r |
|
th |
|
A RasterStack
containing the cell-specific temporal trends
extracted from simple linear regressions of the climatic variable against time
("slpTrends" in degree Celsius per year), together with their standard
errors ("seTrends") and statistical significance ("sigTrends").
Jorge Garcia Molinos and Christopher J. Brown
spatGrad
, gVoCC
yrSST <- sumSeries(HSST, p = "1969-01/2009-12", yr0 = "1955-01-01", l = nlayers(HSST),
fun = function(x) colMeans(x, na.rm = TRUE), freqin = "months", freqout = "years")
# Mean annual SST trend (minimum threshold of 10 years of data), with SE and p-values.
tr <- tempTrend(yrSST, th = 10)
plot(tr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.