pyacs.gts.lib.model.detrend_annual module

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

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

Velocity and annual are saved in Gts.velocity and Gts.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 in the estimation; offsets (Gts.offsets_dates) are estimated simultaneously.