Power Forecast
Example
import matplotlib.pyplot as plt
from jua import JuaClient
client = JuaClient()
pf = client.power_forecast
# Fetch the latest German Solar forecast, up to 48h ahead (2880 minutes)
ds = pf.get_data(
zone_keys=["DE"],
psr_types=["Solar"],
init_time="latest",
max_prediction_timedelta=2880,
)
# The result is an xarray.Dataset; select the single zone/PSR slice and plot it
series = ds["value"].sel(zone_key="DE", psr_type="Solar")
fig, ax = plt.subplots(figsize=(15, 5))
series.plot(ax=ax, x="time")
ax.set_title("Germany — Solar Power Forecast (latest run)")
ax.set_ylabel("Power [MW]")
plt.show()Documentation
Zones and PSR Types
Init Times
Querying Data
Day-Ahead Time Series
Last updated