Description Usage Arguments Details Value References Examples
View source: R/proc_dendro_L2.R
proc_dendro_L2
cleans time-aligned (L1
) dendrometer data
by removing outliers and correcting for erroneous jumps or shifts in
the data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
dendro_L1 |
|
temp_L1 |
|
tol_out |
numeric, defines the rigidity of the threshold above or below which a value is classified as an outlier. Lower values increase the rigidity (see Details for further information). |
tol_jump |
numeric, defines the rigidity of the threshold above or below which a value is flagged for jump correction. Lower values increase the rigidity (see Details for further information). |
lowtemp |
numeric, specifies the temperature in °C below which frost
shrinkage or expansion is expected. Default value is set to
|
frost_thr |
numeric, increases the thresholds for outlier
and jump detection in periods of probable frost (i.e. temperature <
|
interpol |
numeric, length of gaps (in minutes) for which values are
linearly interpolated after data cleaning. Set |
frag_len |
numeric, specifies the length of data fragments occurring
in-between missing data that are automatically deleted during data
cleaning. This can be helpful to remove short fragments of erroneous data
within a period of missing data, i.e. after jumps. If
|
plot |
logical, specify whether the changes that occurred during data cleaning should be plotted. |
plot_period |
character, specify whether plots should be displayed for
the whole period ( |
plot_show |
character, specify whether all periods should be plotted
( |
plot_export |
logical, specifies whether the plots are exported as a
|
plot_name |
character, specify name of the PDF to which the plots are saved. |
iter_clean |
numeric, specifies the number of times the cleaning process is repeated. Can be used to check whether running the cleaning process multiple times has an effect on the results. In most cases, a single iteration is sufficient. |
tz |
specify the desired time zone. Default is |
Time-aligned temperature data temp_L1
is used to define
periods in which frost shrinkage is probable, e.g. when the temperature
is below lowtemp
. Without temperature data, frost shrinkages may be
classified as outliers. For more details and an example see the following
vignette:
vignette("Introduction-to-treenetproc", package = "treenetproc")
.
Temperature data can also be provided along with dendrometer data. In this
case, the name of the temperature series has to contain the string
"temp"
. In case no temperature dataset is specified, a sample
temperature dataset will be used with a warning. The sample temperature
dataset assigns permanent frost to the three months December, January
and February.
Outliers and jumps are identified when exceeding a lower or upper
threshold. Thresholds are obtained on the basis of density distributions
of differences between neighbouring data points. The rigidity of the
thresholds can be controlled with the arguments tol_jump
and
tol_out
. For more information on the calculation of the thresholds
the user is referred to Knüsel et al. (2020, in prep).
The function returns a data.frame
with processed dendrometer
data containing the following columns:
series |
name of the dendrometer series. |
ts |
timestamp with format |
value |
dendrometer value ( |
max |
highest measured value up to this timestamp ( |
twd |
tree water deficit ( |
gro_yr |
growth since the beginning of the year ( |
frost |
indicates frost periods (i.e. periods in which the
temperature is below |
flags |
character vector specifying the changes that occurred
during the processing. For more details see the following vignette:
|
version |
package version number. |
Knüsel S., Haeni M., Wilhelm M., Peters R.L., Zweifel R. 2020. treenetproc: towards a standardized processing of stem radius data. In preparation.
1 2 | proc_dendro_L2(dendro_L1 = dendro_data_L1, plot_period = "monthly",
plot_export = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.