TimeSeries Class ================ `Detailed Documentation `_ `Example Usage `_ General ------- TimeSeries objects are named objects that represent time series in CWMS or DSS contexts. Required Information -------------------- - **location**: :doc:`Location ` - **parameter**: :doc:`Parameter ` - **parameter_type:** :doc:`ParameterType ` - **interval:** :doc:`Interval ` - **duration:** :doc:`Duration ` (CWMS context only) - **version:** str (CWMS context only) Optional Information -------------------- - **watershed:** str - **duration:** :doc:`Duration ` (DSS context only) - **version:** str (DSS context only) - **data:** pandas.DataFrame Notes ----- A TimeSeries with a missing or empty ``_data`` [1]_ field is considered empty The ``_data`` field has the following format: - index: ``pandas.DatetimeIndex`` [2]_ - ``"value"`` column: ``numpy.float64`` - ``"quality"`` column: ``numpy.int64`` .. [1] The ``_data`` field is accessible through the ``data`` property. .. [2] The ``pandas.Timestamp`` type used by ``pandas.DatetimeIndex`` has a year range of approximately 1677..2262, which results in the inability of ``TimeSeries`` objects to include dates outside this range, which may occur in HEC-DSS files.