-
Notifications
You must be signed in to change notification settings - Fork 14
/
TSSRattribution.Rd
110 lines (90 loc) · 4.57 KB
/
TSSRattribution.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TSSRattribution.R
\name{TSSRattribution}
\alias{TSSRattribution}
\title{Vegetation change attribution using the Time Series Segmentation of Residual Trends (MAIN FUNCTION)}
\usage{
TSSRattribution(
CTSR.VI,
CTSR.RF,
CTSR.TM,
max.acp,
max.osp,
C4frac = 0,
sig = 0.05,
season = "none",
exclude = 0,
allow.negative = FALSE,
allowneg.retest = FALSE,
h = 0.15,
returnmodels = FALSE,
returnVCRcoef = FALSE,
AnnualRes = FALSE,
SkipError = TRUE,
retnonsig = TRUE,
splitclim = TRUE,
cliwindow = 20,
CO2 = FALSE,
refyear = 1980
)
}
\arguments{
\item{CTSR.VI}{Complete Monthly Time Series of Vegetation Index values.
An object of class \code{'ts'} object without NA's.}
\item{CTSR.RF}{Complete Time Series of Rainfall. An object of class 'ts' object without NA's
and be the same length and cover the same time range as CTSR.VI.
If ACP.table is provided, CTSR.RF will be automitaclly calculated using the
\code{\link{ACP.calculator}}}
\item{CTSR.TM}{Complete Time Series of temperature. An object of class 'ts' object without NA's
and be the same length and cover the same time range as CTSR.VI. Default (CTSR.TM=NULL).
If ACT.table is provided, CTSR.RF will be automitaclly calculated using the
\code{\link{ACP.calculator}}}
\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{C4frac}{The fraction of vegetation that follows the C4 photosynthetic pathway, between 0 and 1}
\item{sig}{Significance of all the functions. defualt sig=0.05}
\item{season}{See \code{\link[bfast]{bfast}}. This season value only applies to bfast done using the CTS
VPR. if a non VPR adjusted BFAST is performed.a harmonic season is used.}
\item{exclude}{A numberic vector containg months excluded from breakpoint detection. This was included to
allow sensor transitions to be masked.}
\item{allow.negative}{If true, will not preference positive slope in either CTSR or VI calculations. default=FALSE is set
because negative associations between rainfall and vegetation in water limited ecosystems is unexpected
If temperature data is included then this paramter is forced to TRUE.}
\item{allowneg.retest}{default=FALSE
If temperature data is provided but found to not be significant then a retest is performed.
This paramter is to allow negative on re-test.}
\item{h}{See \code{\link[bfast]{bfast}}, The.minimal segment size between potentially detected breaks in the trend model
given as fraction relative to the sample size (i.e. the minimal number of observations in each segment
divided by the total length of the timeseries. Default h = 0.15.}
\item{returnmodels}{Return all the created models as well as the original data}
\item{returnVCRcoef}{Return all the coefficences for the VCR}
\item{AnnualRes}{Report results in change per year. Defualt is False. Instead reports total change from the
start to the end of the time series.}
\item{SkipError}{Bool, If TRUE will handle most errors and return a dataframe filled with NA's.
Usefull when processing large datasets to stop analysis failing on a single pixel.
Use with caution. Defualt=TRUE}
\item{retnonsig}{Bool. New in v0.3.0. Allows TSSRESTREND to return change estimates of values that filed the sig component in the residual analysis.
defualt FALSE will give the same result as eralier versions.}
\item{splitclim}{Bool, If TRUE Climate will be split into climate change and climate varibility as
per Burrell et al., (2020). If FALSE. will just return climate as per IPCC:
Chapter 3: Desertification in the IPCC Special Report on Climate Change, Desertification,
Land Degradation, Sustainable Land Management, Food Security, and Greenhouse gas fluxes in Terrestrial Ecosystems.
Defualt=True.}
\item{cliwindow}{The size of the window in years to be used for calculating climate change.}
\item{CO2}{A timeseries containg the CO2 concentration. The defualt is CMIP5 RCP8.5}
\item{refyear}{The Year that acts as a baseline for CO2. All vegetation values will be scaled #
to the CO2 concentration of this year. Defulat is 1980. THis function will pick the
first value in the selected year,}
}
\value{
\bold{tacp}
The accumulation period for the annual max time series temperature
}
\description{
This is a wrapper function around the TSS-RESTREND main function that dows additional attribution.
It measues the Observed vegetation change, land use, climate change and climate varibility.
Unlike TSSRESTREND function, this requires both temperature and precitation data fo work.
}
\author{
Arden Burrell, [email protected]
}