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 pricing page.

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}")

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.

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.

Last updated