pyacs.gts.Sgts_methods.read_ts module

pyacs.gts.Sgts_methods.read_ts.read_ts(self, ts_dir='.', verbose=True, name_filter='', add_key='', sites=[], lexclude=[], type=None, xyz=True)[source]

Read time series from directory; format is auto-detected or set by type.

Supported formats: pos, kenv, mb_file, cats, txyz (pyacs), track (NEU), pride, pck.

Parameters:
  • ts_dir (str, optional) – Directory of time series files. Default is ‘.’.

  • verbose (bool, optional) – If True, print progress. Default is True.

  • name_filter (str, optional) – Filter on time series name (’name_filter’).

  • add_key (str, optional) – String to add before site code.

  • sites (list, optional) – If non-empty, only these site codes are read.

  • lexclude (list, optional) – Site codes to exclude from reading.

  • type (str, optional) – Format: ‘pos’, ‘kenv’, ‘mb_file’, ‘cats’, ‘txyz’, ‘track’, ‘pride’, ‘pck’.

  • xyz (bool, optional) – For pos files, read XYZ rather than dNEU. Default is True.

Returns:

Time series are appended to this Sgts instance (in-place).

Return type:

None