solarforecastarbiter.metrics.preprocessing.check_reference_forecast_consistency¶
-
solarforecastarbiter.metrics.preprocessing.
check_reference_forecast_consistency
(fx_obs, ref_data)[source]¶ Filter and resample the observation to the forecast interval length.
Parameters: - fx_obs (solarforecastarbiter.datamodel.ForecastObservation, solarforecastarbiter.datamodel.ForecastAggregate) – Pair of forecast and observation.
- ref_data (pandas.Series or pandas.DataFrame or None) – Timeseries data of the reference forecast.
Raises: ValueError
– If fx_obs.reference_forecast is not None but ref_data is None or vice versaValueError
– If fx_obs.reference_forecast.interval_label or interval_length does not match fx_obs.forecast.interval_label or interval_length