View source: R/tdm_uncertain.R
tdm_uncertain | R Documentation |
Quantifies the induced uncertainty on SFD
and K
time series due to the variability
in input parameters applied during TDM data processing. Moreover, it applies a global sensitivity
analysis to quantify the impact of each individual parameter on three relevant outputs derived from SFD
and K
, namely:
i) the mean daily sum of water use,
ii) the variability of maximum daily SFD
or K
values,
iii) and the duration of daily sap flow.
This function provides both the uncertainty and sensitivity indices, as time-series of SFD
and K
with the mean,
standard deviation (sd
) and confidence interval (CI) due to parameter uncertainty.
Users should ensure that no gaps are present within the input data and environmental time series.
tdm_uncertain(
input,
vpd.input,
sr.input,
method = "pd",
n = 2000,
zero.end = 8 * 60,
range.end = 16,
zero.start = 1 * 60,
range.start = 16,
probe.length = 20,
sw.cor = 32.28,
sw.sd = 16,
log.a_mu = 4.085,
log.a_sd = 0.628,
b_mu = 1.275,
b_sd = 0.262,
max.days_min = 1,
max.days_max = 7,
ed.window_min = 8,
ed.window_max = 16,
criteria.vpd_min = 0.05,
criteria.vpd_max = 0.5,
criteria.sr_mean = 30,
criteria.sr_range = 30,
criteria.cv_min = 0.5,
criteria.cv_max = 1,
min.sfd = 0.5,
min.k = 0,
make.plot = TRUE,
df = FALSE
)
input |
An |
vpd.input |
An |
sr.input |
An |
method |
Character, specifies the |
n |
Numeric, specifies the number of times the bootstrap resampling procedure is repeated (default = 2000). Keep in mind that high values increase processing time. |
zero.end |
Numeric, defines the end of the predawn period. Values should be in minutes (e.g., predawn conditions until 8:00 = 8*60; default = 8*60). |
range.end |
Numeric, defines the number of time steps for |
zero.start |
Numeric, defines the start of the predawn period. Values should be in minutes (e.g., predawn conditions from 1:00 = 1*60; default = 1*60). |
range.start |
Numeric, defines the number of time steps for |
probe.length |
Numeric, the length of the TDM probes in mm (see |
sw.cor |
Numeric, the sapwood thickness in mm. Default conditions assume the sapwood thickness is equal to a standard probe length (default = 20). |
sw.sd |
Numeric, the standard deviation for sampling sapwood thickness sampling from a normal distribution (default = 16 mm; defined with a European database on sapwood thickness measurements). |
log.a_mu |
Numeric, value providing the natural logarithm of the calibration parameter |
log.a_sd |
Numeric, the standard deviation of the |
b_mu |
Numeric, the value of the calibration parameter |
b_sd |
Numeric, the standard deviation of the |
max.days_min |
Numeric, the minimum value for an integer sampling range of |
max.days_max |
Numeric, the maximum value for an integer sampling range of |
ed.window_min |
Numeric, the minimum number of time steps for the |
ed.window_max |
Numeric, the maximum number of time steps for the |
criteria.vpd_min |
Numeric, value in |
criteria.vpd_max |
Numeric, value in |
criteria.sr_mean |
Numeric value defining the mean |
criteria.sr_range |
Numeric, the range (in %) around |
criteria.cv_min |
Numeric, value (in %) defining the minimum value for the fixed sampling range to
determine the coefficient of variation (CV) threshold for establishing zero-flow conditions
(default = 0.5%; see |
criteria.cv_max |
Numeric, value (in %) defining the maximum value for the fixed sampling range
to determine the coefficient of variation (CV) threshold for establishing zero-flow conditions
(default = 1%; see |
min.sfd |
Numeric, defines at which |
min.k |
Numeric value defining at which |
make.plot |
Logical; If |
df |
Logical; If |
Uncertainty and sensitivity analysis can be performed on TDM \Delta T
(or \Delta V
) measurements.
The function applies a Monte Carlo simulation approach (repetition defined by n
)
to determine the variability in relevant output variables (defined as uncertainty)
and quantifies the contribution of each parameter to this uncertainty (defined as sensitivity).
To generate variability in the selected input parameters a Latin Hypercube Sampling is performed with a default
or user defined range of parameter values per \Delta T_{max}
method (see tdm_dt.max()
).
The sampling algorithm generates multiple sampling distributions, including an integer sampling range (for zero.start
,
zero.end
, max.days
, and ed.window
), a continuous sampling range (criteria for sr
, vpd
and cv
),
and a normal distribution (for sw.cor
and calibration parameters a
and b
).
Within this algorithm no within-day interpolations are made between the \Delta T_{max}
points
(see tdm_dt.max
, interpolate = FALSE
). This approach ensures near-random sampling across different
types of sampling distributions, while avoiding the need for increasing the number of replicates
(which increases computation time). For the application of this approach one needs to;
i) select the output of interest,
ii) identify the relevant input parameters, and
iii) determine the parameter range and distribution.
For a given time-series three output variables are considered, calculated as the mean over the entire time-series,
to be relevant, namely;
i) mean daily sum of water use (or Sum, expressed in cm^3 cm^{-2} d^{-1}
for SFD
and unitless for K
),
ii) the variability of maximum SFD
or K
values (or CV, expressed as the coefficient of variation in %
as this alters climate response correlations), and
iii) the duration of daily sap flow based on SFD
or K
(or Duration, expressed in hours per day dependent on a threshold,
see min.sfd
and min.k
).
A minimum threshold to define zero-flow SFD
or K
is required for the duration calculation
as small variations in night-time SFD
or K
are present. All data-processing steps
(starting with "tdm_"
) are incorporated within the function, excluding tdm_damp()
due to the need for detailed visual inspection and significantly longer computation time.
For the sensitivity analysis the total overall sensitivity indices are determined according strategy originally proposed by Sobol' (1993), considering the improvements applied within the sensitivity R package. The method proposed by Sobol' (1993) is a variance-based sensitivity analysis, where sensitivity indices (dimensionless from 0 to 1) indicate the partial variance contribution by a given parameter over the total output variance (e.g., Pappas et al. 2013). This global sensitivity analysis facilitates the identification of key parameters for data-processing improvement and highlights methodological limitations. Users should keep in mind that parameter ranges represent a very critical component of any sensitivity analysis and should be critically assessed and clearly reported for each case and analytical purpose. Moreover, it is advised to run this function on one growing season of input data to reduce processing time.
A named list
of zoo
or data.frame
objects in the appropriate format for other functionalities.
Items include:
data.frame containing uncertainty and sensitivity indices for SFD
and K and the included parameters.
This includes the mean uncertainty/sensitivity [,"mean"], standard deviation [,"sd"], upper [,"ci.min"] and lower [,"ci.max"]
95% confidence interval.
zoo object or data.frame with the SFD
time series obtained from the bootstrap resampling.
This includes the mean uncertainty/sensitivity [,"mean"], standard deviation [,"sd"], upper [,"CIup"] and lower [,"CIlo"]
95% confidence interval.
zoo object or data.frame with the K time series obtained from the bootstrap resampling. This includes the mean uncertainty/sensitivity [,"mean"], standard deviation [,"sd"], upper [,"ci.max"] and lower [,"ci.min"] 95% confidence interval.
a data.frame with an overview of selected parameters used within tdm_uncertain()
function.
Sobol' I. 1993. Sensitivity analysis for nonlinear mathematical models. Math. Model Comput. Exp. 1:407-414
Pappas C, Fatichi S, Leuzinger S, Wolf A, Burlando P. 2013. Sensitivity analysis of a process-based ecosystem model: Pinpointing parameterization and structural issues. Journal of Geophysical Research 118:505-528 \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1002/jgrg.20035")}
## Not run:
#perform an uncertainty and sensitivity analysis on "dr" data processing
raw <- example.data(type="doy")
input <- is.trex(raw, tz="GMT", time.format="%H:%M",
solar.time=TRUE, long.deg=7.7459, ref.add=FALSE, df=FALSE)
input<-dt.steps(input,time.int=15,start="2013-04-01 00:00",
end="2013-11-01 00:00",max.gap=180,decimals=15)
output<- tdm_uncertain(input, probe.length=20, method="pd",
n=2000,sw.cor=32.28,sw.sd=16,log.a_mu=3.792436,
log.a_sd=0.4448937,b_mu=1.177099,b_sd=0.3083603,
make.plot=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.