This Page

scikits.hydroclimpy.core.ts_addons.deseasonalize

deseasonalize(series, season, normalize=True, unbiased=True)

Deseasonalize a time series by substracting the seasonal average and dividing by the seasonal standard deviation (if needed). Returns a new time series, with the same frequency as the original.

Parameters:

series : TimeSeries

Input time series.

season : string/integer

Frequency of the season. For example, use ‘M’ or 3000 for 12 seasons per year (one per month).

normalize : {True, False}, optional

Whether to divide by the seasonal standard deviation.

unbiased : {True, False}, optional

Whether the biased (False) or unbiased (True) estimate of the standard deviation should be computed.