Gts.add_obs

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]
add_obs(date, NEUSNSESUCNECNUCEU, in_place=False, check=True, verbose=False)

Add observation(s) as DN, DE, DU to a time series.

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

  • NEUSNSESUCNECNUCEU (list or ndarray) – Values to add: at least NEU (North, East, Up). Optional: SN, SE, SU, CNE, CNU, CEU (standard deviations and correlations). If not provided, SN=SE=SU=0.001, CNE=CNU=CEU=0.

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

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

  • verbose (bool, optional) – Verbose mode.

Returns:

New Gts or the modified Gts if in_place.

Return type:

Gts

Notes

If .data_xyz exists, it will be set to None for consistency.