Gts.spline
- class pyacs.gts.Gts.Gts(code=None, lat=None, lon=None, h=None, X0=None, Y0=None, Z0=None, t0=None, data=None, data_xyz=None, data_corr_neu=None, data_corr_xyz=None, offsets_dates=[], offsets_values=None, outliers=[], annual=None, semi_annual=None, velocity=None, ifile=None, log=None, metadata=None)[source]
- spline(smoothing=1, degree=5, date=None)
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: