pyacs.gts.lib.primitive.add_obs_xyz module

pyacs.gts.lib.primitive.add_obs_xyz.add_obs_xyz(self, date, XYZSXSYSZCXYCXZCYZ, in_place=False, check=True, neu=True, verbose=False)[source]

Add observation(s) as XYZ to a time series.

Parameters:
  • date (float or list or ndarray) – Date(s) in decimal year.

  • XYZSXSYSZCXYCXZCYZ (list or ndarray) – Values to add: at least X, Y, Z. Optional: SX, SY, SZ, CXY, CXZ, CYZ (standard deviations and correlations). If not provided, SX=SY=SZ=0.001, CXY=CXZ=CYZ=0.

  • in_place (bool, optional) – If True, add to current Gts; if False, return a new Gts.

  • check (bool, optional) – Check time order, duplicate dates, and regenerate NEU (.data).

  • neu (bool, optional) – Regenerate .data from updated .data_xyz.

  • verbose (bool, optional) – Verbose mode.

Returns:

New Gts or the modified Gts if in_place.

Return type:

Gts

Notes

By default .data is updated from .data_xyz and X0, Y0, Z0 are updated.