solarforecastarbiter.reference_forecasts.main.process_nwp_forecast_groups

solarforecastarbiter.reference_forecasts.main.process_nwp_forecast_groups(session, run_time, forecast_df)[source]

Groups NWP forecasts based on piggyback_on, calculates the forecast as appropriate for run_time, and uploads the values to the API.

Parameters:
  • session (io.api.APISession) – API session for uploading forecast values
  • run_time (pandas.Timestamp) – Run time of the forecast. Also used along with the forecast metadata to determine the issue_time of the forecast.
  • forecast_df (pandas.DataFrame) – Dataframe of the forecast objects as procduced by solarforecastarbiter.reference_forecasts.main.find_reference_nwp_forecasts`().