# solarforecastarbiter.reference_forecasts.forecast.unmix_intervals¶

solarforecastarbiter.reference_forecasts.forecast.unmix_intervals(mixed, lower=0, upper=100)[source]

Convert mixed interval averages into pure interval averages.

For example, the GFS 3 hour output contains the following data:

• forecast hour 3: average cloud cover from 0 - 3 hours
• forecast hour 6: average cloud cover from 0 - 6 hours
• forecast hour 9: average cloud cover from 6 - 9 hours
• forecast hour 12: average cloud cover from 6 - 12 hours

and so on. This function returns:

• forecast hour 3: average cloud cover from 0 - 3 hours
• forecast hour 6: average cloud cover from 3 - 6 hours
• forecast hour 9: average cloud cover from 6 - 9 hours
• forecast hour 12: average cloud cover from 9 - 12 hours
Parameters: data (pd.Series) – The first time must be the first output of a cycle. lower (None or float) – Lower bound. Useful for handling numerical precision issues in input data. upper (None or float) – Upper bound of output. Useful for handling numerical precision issues in input data. pd.Series – Data is the unmixed interval average with ending label.