pyacs.gts.lib.primitive.extract_periods module
- pyacs.gts.lib.primitive.extract_periods.extract_periods(self, lperiod, in_place=False, verbose=False, no_reset=False, ignore_data_xyz=False)[source]
Extract periods of a Gts.
- Parameters:
lperiod (list) – A list [start_date,end_date] or a list of periods e.g. [[2000.1,2003.5],[2009.3,2010.8]].
in_place (bool, optional) – If True, will make change in place; if False, returns a new time series.
verbose (bool, optional) – Verbose mode.
no_reset (bool, optional) – If True, do not reset X0, Y0, Z0 to first epoch of extracted data.
ignore_data_xyz (bool, optional) – If True, work on .data only and ignore .data_xyz.
Notes
X0, Y0, Z0 attributes will be changed if necessary.
Handles both .data and .data_xyz.