pyacs.gts.lib.filters.spline module

pyacs.gts.lib.filters.spline.spline(self, smoothing=1, degree=5, date=None)[source]

Model the time series with a smoothing spline (UnivariateSpline).

Parameters:
  • smoothing (float, optional) – Positive smoothing factor; number of knots increased until sum((w*(y-spl(x)))**2) <= s (s = smoothing * 1e-3).

  • degree (int, optional) – Degree of the spline (<= 5). Default 5.

  • date (ndarray or str or None, optional) – Interpolation dates: 1D array (decimal year), ‘day’ for daily, or None for data dates only.

Returns:

New Gts instance with spline-smoothed NEU.

Return type:

Gts