pyacs.gts.Sgts_methods.correct_offsets_from_file module
- pyacs.gts.Sgts_methods.correct_offsets_from_file.correct_offsets_from_file(self, offset_file, fill_offsets_dates=False)[source]
Read offsets from a text file and apply them to the time series.
- Parameters:
offset_file (str) – Path to the offset file.
fill_offsets_dates (bool, optional) – If True, fill the offsets_dates attribute of each Gts. Default False.
- Returns:
Copy of the current Sgts with offsets applied (one Gts per site that appears in the file and in the collection).
- Return type:
Notes
Offset file is whitespace-separated; lines starting with
#are ignored. Expected columns: lon, lat, de, dn, du, sde, sdn, sdu, code, offset_date, offset_info. Displacements (de, dn, du, sde, sdn, sdu) are in mm in the file. Example:# lon lat de dn du sde sdn sdu code offset_date offset_info -79.1000 0.1000 -103.51 3.67 0.00 2.37 2.60 0.00 ARSH 2016-04-16T23:58 Mw7.8/-80.25/-0.12/22