For the complete documentation index, see llms.txt. This page is also available as Markdown.

Model

The Model class provides access to weather forecast data from Jua's weather prediction models. It allows you to retrieve future weather predictions with flexible spatial and temporal selection options.

Historical weather data (known as hindcasts) are also available directly directly through the Model class. Hindcasts are past model runs that allow you to analyze historical weather patterns, evaluate model performance, or test your pipelines. All model runs that are older that 90 days (i.e. an having an init_time that is more than 90 days in the past) are classified as hindcasts.

Information about model/query pricing is available in the developer portal.

Overview

The Model class serves as your interface to Jua's weather forecasting capabilities. It provides methods to:

  • Retrieve forecast data for global coverage or specific locations

  • Access forecasts for specific initialization times or the latest available forecast

  • Query metadata about available forecasts

  • Check forecast availability and readiness

List Available Models

from jua.weather import Models

print("Available models:")
for model in Models:
    print(f"  - {model}")
Available models:
  - Models.EPT1_5
  - Models.EPT1_5_EARLY
  - Models.EPT2
  - Models.EPT2_E
  - Models.EPT2_EARLY
  - Models.EPT2_HRRR
  - Models.EPT2_RR
  - Models.EPT2_REASONING
  - Models.AIFS
  - Models.AURORA
  - Models.ECMWF_IFS_SINGLE
  - Models.ICON_EU
  - Models.ICON_GLOBAL
  - Models.NOAA_GFS_SINGLE
  - Models.ECMWF_AIFS_ENSEMBLE
  - Models.ECMWF_AIFS_SINGLE
  - Models.ECMWF_IFS_ENSEMBLE
  - Models.GFS_GLOBAL_ENSEMBLE
  - Models.GFS_GLOBAL_SINGLE
  - Models.GFS_GRAPHCAST
  - Models.ICON_D2
  - Models.KNMI_HARMONIE_AROME_EUROPE
  - Models.KNMI_HARMONIE_AROME_NETHERLANDS
  - Models.METEOFRANCE_AROME_FRANCE_HD
  - Models.UKMO_GLOBAL_DETERMINISTIC_10KM
  - Models.UKMO_UK_DETERMINISTIC_2KM

Request model metadata

Getting the Forecasts Available for a Model

The get_available_forecasts forecast response is paginated. So to obtain all available forecasts for a model, you need to iterate through the responses.

You can also specify a range of dates for which you want to get available init_times.

Check if the forecasted data is available

Requesting the forecast data

⚠️ When querying data with method="nearest" the returned coordinates will be slightly different to the requested ones, as it will return the coordinates of the nearest grid points for the model.

⚠️ Region-based requests can be expensive. For more information, see our pricing docs.

⚠️ Requests might be large and take a long time to load.

Requesting Hindcasts for Models

Hindcasts can be obtained directly through the same get_forecasts method.

⚠️ When querying data with method="nearest" the returned coordinates will be slightly different to the requested ones, as it will return the coordinates of the nearest grid points for the model.

⚠️ Region-based requests can be expensive. For more information, see our pricing docs. In this example, the request_credit_limit needs to be increased for the JuaClient or the request will fail.

⚠️ Requests might be large and take a long time to load.

⚠️ When pulling large grids, it's better to make smaller requests and combine the data locally (also so that your local memory does not run out)

Last updated