downloader.entsoe.download_renewable_forecast

downloader.entsoe.download_renewable_forecast(
    api_key,
    country_code='DE',
    start=None,
    end=None,
    force=False,
    timeout=60.0,
)

Download the ENTSO-E day-ahead wind/solar generation forecast.

Queries query_wind_and_solar_forecast and merges the result into interim/renewable_forecast.csv (columns such as "Solar", "Wind Onshore", "Wind Offshore"). The day-ahead forecast is leakage-clean (published D-1); the realised generation must not be used. Consumed downstream by spotforecast2_safe.preprocessing.exog_providers.EntsoeRenewableForecastProvider via spotforecast2_safe.data.fetch_data.load_renewable_forecast.

Parameters

Name Type Description Default
api_key str ENTSO-E Web API security token. required
country_code str Country / bidding-zone code. Defaults to "DE". 'DE'
start Optional[str] Start in 'YYYYMMDDHH00' format, or None to default to seven days ago. None
end Optional[str] End in 'YYYYMMDDHH00' format, or None to default to the start of tomorrow. None
force bool If True, bypass the small-window cooldown check. False
timeout Optional[float] Per-socket-operation read timeout in seconds. None disables the timeout. Defaults to 60.0. 60.0

Raises

Name Type Description
ImportError If entsoe-py is not installed.
ValueError If start or end cannot be parsed.
RuntimeError If the download fails after _MAX_RETRIES attempts.

Examples

from spotforecast2_safe.downloader.entsoe import download_renewable_forecast

download_renewable_forecast(api_key="YOUR_API_KEY", country_code="DE", force=True)