pyacs.gts.lib.model.detrend_seasonal module

pyacs.gts.lib.model.detrend_seasonal.detrend_seasonal(self, method='L2', periods=None, exclude_periods=None)[source]

Estimate trend + annual + semi-annual terms and remove them from the time series.

Velocity, annual and semi_annual are saved in Gts.velocity, Gts.annual, Gts.semi_annual.

Parameters:
  • method (str, optional) – Estimation method (e.g. ‘L2’).

  • periods (list, optional) – Periods used for estimation.

  • exclude_periods (list, optional) – Periods to exclude from estimation.

Returns:

Detrended time series (new instance).

Return type:

Gts

Notes

Outliers (Gts.outliers) are omitted; offsets (Gts.offsets_dates) are estimated simultaneously.