An internal function that helps to create the climatologies that are
then output with ts2clm
.
clim_calc(data, windowHalfWidth, pctile)
The data given to this function during the calculations
performed by ts2clm
.
The width of the smoothing window to be applied. This width is doubled and centred around the point that the smoothing occurs. Default = 5, which makes an overall window size of 11.
Threshold percentile (%) for detection of events (MHWs).
Default is 90
th percentile.
The function returns the calculated climatologies.