pyacs.gts.lib.primitive.extract_dates module
- pyacs.gts.lib.primitive.extract_dates.extract_dates(self, dates, tol=0.05, rounding=None, in_place=False, verbose=True)[source]
Return a time series extracted for a given list of dates.
- Parameters:
dates (list or ndarray) – Dates as a list or 1D numpy array of decimal dates.
tol (float, optional) – Date tolerance in days to assert that two dates are equal (default 0.05 day).
rounding (str, optional) – Rounding for date comparison (‘second’, ‘minute’, ‘hour’, ‘day’). Inferred from tol if None.
in_place (bool, optional) – If True, will make change in place; if False, returns a new time series.
verbose (bool, optional) – Verbose mode.