nwm_eval.create_plots.plot_time_series#

nwm_eval.create_plots.plot_time_series(conf, data_paths, df, unit, lead=None, ref_time=None)[source]#

Plot time series of observed and forecasted streamflow for a single location.

Parameters:
  • conf – A dictionary containing the configuration for plotting, which may include plotting parameters.

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

  • df – A DataFrame containing the time series data to be plotted, with columns including “value_time”, “primary_value”, and forecast dataset columns.

  • unit – A string representing the measurement unit for the streamflow values, used for labeling the y-axis.

  • lead – A string representing the lead time for the plot, used for labeling the title. Optional if ref_time is provided.

  • ref_time – A string representing the reference time for the plot, used for labeling the title. Optional if lead is provided.

Returns:

A string representing the file path of the saved plot image.