smooth_percentile function

Detect the climatology for a time series.