clim.twd: Calculating relative growth change during no-rain periods.

View source: R/clim.twd.R

clim.twdR Documentation

Calculating relative growth change during no-rain periods.

Description

This function calculates the number and the location of climatically adverse periods within a climate time series. The user can define a duration and threshold of these conditions. The function also provides the relative radial/circumferencial change during each adverse period for the original or normalized data. See Raffelsbauer et al., (2019) for more details.

Usage

clim.twd(
  df,
  Clim,
  dailyValue = "max",
  thresholdClim = 0,
  thresholdDays = 2,
  norm = F,
  showPlot
)

Arguments

df

dataframe with first column containing date and time in the format yyyy-mm-dd HH:MM:SS and the dendrometer data in following columns.

Clim

dataframe with the first column containing doy and second column containing corresponding climate data.

dailyValue

either 'max', 'min', or 'mean' for selecting the daily resampled value. Default is 'max'. See dendro.resample for details.

thresholdClim

numeric, the theshold for the respective climatic parameter. E.g. if climatic data is precipitation then days, where precipitation is below or equal to this value, are considered as adverse climate. Dafault is 0.

thresholdDays

numeric, the minimum number of consecutive adverse days to be considered for analysis. For example, thresholdDays=2 means the relative radial/circumferential change is calculated for adverse periods lasting for more than 2 days. Default is 2.

norm

logical, if TRUE the function uses normalized data instead of original dataset. Default is FALSE.

showPlot

logical, if TRUE, generates plots.

Value

A dataframe containing the respective periods, relative radial/circumference change for each tree, the ID for each period and their beginning and end.

References

Raffelsbauer V, Spannl S, Peña K, Pucha-Cofrep D, Steppe K, Bräuning A (2019) Tree Circumference Changes and Species-Specific Growth Recovery After Extreme Dry Events in a Montane Rainforest in Southern Ecuador. Front Plant Sci 10:342. doi: 10.3389/fpls.2019.00342

Examples

library(dendRoAnalyst)
data(gf_nepa17)
data(ktm_rain17)
relative_dry_growth<-clim.twd(df=gf_nepa17, Clim=ktm_rain17, dailyValue='max', showPlot=TRUE)
1

head(relative_dry_growth,10)


dendRoAnalyst documentation built on Nov. 16, 2022, 9:07 a.m.