pyacs.gts.lib.l1trend.preprocessing module

Pre-processing functions for L1-trend analysis.

pyacs.gts.lib.l1trend.preprocessing.pre_process_test(gts, component, threshold=5000.0, logger=None)[source]

Pre-process. Test whether a large offset is present in the time series. Find the largest offset exceeding threshold found in the time series. Returns the index in the time series immediately after the largest offset or a void list if no offset is found

Parameters:
  • gts (Gts) – Input time series

  • component (str) – Component to test (‘E’, ‘N’, or ‘U’)

  • threshold (float) – Threshold for offset detection

  • logger (logging.Logger, optional) – Logger instance for logging messages

Returns:

List of indices where offsets are found

Return type:

list

pyacs.gts.lib.l1trend.preprocessing.pre_process_ts(self, threshold=5000.0)[source]

Pre-process a time series to avoid convergence problems in l1trend. It performs change point detection analysis, correct for unrealistically large velocity and return a cleaned time series