This function detects the TWD phases, including their beginning (TWDb), using the phase.zg function. Then it calculates the number, time of occurance (Tm) and value of every local maximum within each TWD phase. In addition it calculates the time difference between 'TWDb' and each 'Tm' within each TWD phase.
Usage
twd.maxima(df, TreeNum, smoothing = 5)
Value
A data frame with statistics of maxima in each TWD phase.
Arguments
df
data frame with first column containing date and time in the format yyyy-mm-dd HH:MM:SS. It should contain data with constant temporal resolution for best results.
TreeNum
numerical value indicating the tree to be analysed. E.g. '1' refers to the first dendrometer data column in df.
smoothing
numerical value from 1 to 12 which indicates the length of the smoothing spline, i.e. 1 = 1 hour and 12 = 12 hours. Default is 5.