-
Notifications
You must be signed in to change notification settings - Fork 14
/
climate.accumulator.Rd
47 lines (42 loc) · 1.68 KB
/
climate.accumulator.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ClimateAccumulator.R
\name{climate.accumulator}
\alias{climate.accumulator}
\title{Climate Accumulator}
\usage{
climate.accumulator(
CTSR.VI,
clim.data,
max.acp,
max.osp,
temperature = FALSE,
cliwindow = 0
)
}
\arguments{
\item{CTSR.VI}{Complete Time Series of Vegetation Index. An object of class \code{'ts'}. Monthly time series of VI values}
\item{clim.data}{Complete Time Series of monthly rainfall or temperature. An object of class \code{'ts'}. Must
have the same end date as CTSR.VI and be longer than the CTSR.VI by more than the max acsumuation
period (max.acp) plus the max offset period.(max.ops)}
\item{max.acp}{The max accumuation period. Must be an integer > 1.}
\item{max.osp}{The max offset period. Must be an integer >1}
\item{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.}
\item{cliwindow}{The size of the window in years to be used for calculating climate change.}
}
\value{
ACP.table
A matrix with ever possible accumuated climate combination
}
\description{
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.
}
\examples{
# Define the max accumuulation period
acp <- 12
#Define the max offset period
osp <- 4
rftable <- climate.accumulator(segRESTRENDCTSR$cts.NDVI, segRESTRENDctRF$precip, acp, osp)
}