nwm_eval.create_plots.get_time_series#

nwm_eval.create_plots.get_time_series(data_paths, data_type, dataset=None)[source]#

Get forecast or observed time series data (and unit) from forecast or observed data file.

Cannot use paired data file which has forecast data trimmed to the time range of observed data by teehr.

Return type:

tuple[DataFrame, str]

Parameters:
  • data_paths – A dictionary containing the paths to the data files.

  • data_type – A string indicating the type of data to retrieve, either “observed” or “forecast”.

  • dataset – A string representing the dataset name for forecast data. Optional for observed data but required for forecast data.

Returns:

A tuple containing a DataFrame with the time series data and a string representing the measurement unit for the streamflow values.