pyacs.gts.lib.plot.gts_to_ts module
- pyacs.gts.lib.plot.gts_to_ts.gts_to_ts(gts, date=None, unit='mm', date_unit='decyear', date_ref=None, set_zero_at_date=None, center=True)[source]
Prepare Gts for plotting (dates, y, yerr).
- Parameters:
gts (Gts) – Gts instance.
date (list, optional) – [start_date, end_date] in decimal year; None = all dates.
unit (str, optional) – Output unit (e.g. ‘mm’). Default is ‘mm’.
date_unit (str, optional) – X-axis date unit. Default is ‘decyear’.
date_ref (float, optional) – Reference date in decimal year. Default is None.
set_zero_at_date (float, optional) – Date to set zero. Default is None.
center (bool, optional) – Center series. Default is True.
- Returns:
np_date (array) – Dates for x-axis.
y (array) – Values.
yerr (array) – Errors.