Historical Data
The Hindcast class provides access to historical weather data (known as hindcasts) from Jua's weather models. Hindcasts are past model runs that allow you to analyze historical weather patterns, evaluate model performance, or test your pipelines.
Hindcasts differ from forecasts in that they provide access to a large archive of past weather predictions, while forecasts focus on future predictions from recent model runs. With hindcasts, you can:
Access years of historical weather data
Compare model predictions with observed weather
Train and validate weather-dependent applications
Study past weather events with high-resolution data
For more details see Historical Data.
Hindcast data is provided for the following models:
EPT 2
EPT 1.5 and 1.5 Early
AIFS
⚠️ Loading hindcast data might take long. Make sure to select only the data that you need.
from jua.client import JuaClient
from jua.types.geo import LatLon
from jua.weather import Models, Variables
client = JuaClient()
model = client.weather.get_model(Models.EPT1_5)
sites = [
# label is optional
LatLon(55.06, 13.00, label="Kriegers Flak"),
LatLon(54.04, 5.96, label="Gemini Wind Farm"),
LatLon(51.71, 2.91, label="Borssele III & IV"),
LatLon(53.89, 1.79, label="Hornsea Two"),
]
variables = [
Variables.WIND_SPEED_AT_HEIGHT_LEVEL_100M,
]
site_hindcast = model.hindcast.get_hindcast(
# First 7 days of May 2024
init_time=slice("2024-05-01", "2024-05-08"),
variables=variables,
points=sites,
# Select the first 24 hours
max_lead_time=24,
method="nearest",
)
print(site_hindcast.to_xarray())
[########################################] | 100% Completed | 15.52 s
<xarray.Dataset> Size: 14kB
Dimensions: (points: 4, time: 32,
prediction_timedelta: 25)
Coordinates:
latitude (points) float32 16B 55.07 54.02 ... 53.85
longitude float32 4B -64.05
* prediction_timedelta (prediction_timedelta) timedelta64[ns] 200B ...
* time (time) datetime64[ns] 256B 2024-05-01 .....
* points (points) <U17 272B 'kriegers_flak' ... '...
Data variables:
wind_speed_at_height_level_100m (points, time, prediction_timedelta) float32 13kB ...
Last updated