Description Usage Arguments Value Examples
View source: R/ClimateAccumulator.R
Takes the time series of rainfall and returns a rainfall accumulation table of every possible combination of the max accumulation period and the max offset period.
1 2 3 4 5 6 7 8 | climate.accumulator(
CTSR.VI,
clim.data,
max.acp,
max.osp,
temperature = FALSE,
cliwindow = 0
)
|
CTSR.VI |
Complete Time Series of Vegetation Index. An object of class |
clim.data |
Complete Time Series of monthly rainfall or temperature. An object of class |
max.acp |
The max accumuation period. Must be an integer > 1. |
max.osp |
The max offset period. Must be an integer >1 |
temperature |
Bool. If the clim.data being accumulated is temperature, will take a mean not a sum. This makes it easier to comapare regions with different accumulation and offset periods. This is new in v0.3.0. Defualt=FALSE which replicates the behaviour of TSSRESTREND versions <0.2.16. |
cliwindow |
The size of the window in years to be used for calculating climate change. |
ACP.table A matrix with ever possible accumuated climate combination
1 2 3 4 5 | # Define the max accumuulation period
acp <- 12
#Define the max offset period
osp <- 4
rftable <- climate.accumulator(segRESTRENDCTSR$cts.NDVI, segRESTRENDctRF$precip, acp, osp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.