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

Benchmarks

Query station benchmark metrics for model evaluation and comparison.

Query station benchmark metrics

post

Query benchmark metrics (RMSE, MAE, bias, CRPS, quantiles) for forecast models evaluated against weather station observations.

CRPS (Continuous Ranked Probability Score) is derived from the per-ensemble-member forecast errors; for deterministic models it equals MAE.

For calibratable Jua ensemble models, CRPS reflects the delivered-product spread calibration by default. Set calibrate=false to evaluate the raw ensemble spread instead.

Metric selection: By default all metrics are computed and returned. Pass metrics (any of rmse, mae, bias, crps) to compute and return only those. Requesting only mean-based metrics (rmse/mae/bias) is significantly faster for ensemble models, since CRPS is the only metric that needs the per-ensemble-member distribution.

Useful for:

  • Comparing forecast model performance

  • Evaluating model accuracy by region

  • Analyzing forecast errors over time

Multi-Model Support:

  • Query multiple models in a single request to compare performance

  • Results include model name in each row for easy comparison

Geographic Filtering:

  • market_zone: Filter by energy market zone (e.g., "DE", "FR")

  • country_key: Filter by country code (e.g., "DE", "US")

Note: Either station_ids or geo must be provided (mutually exclusive).

Authentication: Requires API key.

For more information on benchmark metrics, see docs.jua.ai.

Authorizations
Query parameters
formatstring · enumOptional

Response format: 'json' for columnar JSON or 'arrow' for Apache Arrow IPC stream

Default: jsonPossible values:
include_unitsbooleanOptional

When true, JSON responses are wrapped in {data, units}.

Default: false
Body

Query parameters for station benchmark data.

station_idsstring[] · nullableOptional

List of specific station IDs to query. Mutually exclusive with geo filter.

start_timestring · date-timeRequired

Start of the benchmark period on forecast init time, inclusive: init_time >= start_time.

end_timestring · date-timeRequired

End of the benchmark period on forecast init time, inclusive: init_time <= end_time. Must be after start_time.

max_prediction_timedelta_minutesintegerOptional

Maximum prediction lead time in minutes

Default: 28800
debiasbooleanOptional

If True, evaluate supported variables using Jua's bias-corrected forecast errors, keyed by model, valid-time ISO week, forecast-init hour and minute, and prediction lead. Supported variables are air temperature at 2 m, wind speed at 10 m, and surface solar radiation.

Default: false
calibratebooleanOptional

If True, evaluate calibratable Jua ensemble models using the calibrated spread delivered in Jua's forecast product. Set to False to evaluate the raw ensemble spread. Incompatible with obs_buckets.

Default: true
init_hoursinteger[] · nullableOptional

Filter to forecasts initialised at the given UTC hours. Each value must be in 0..23 (e.g. [0, 12] keeps only 00Z and 12Z runs). None or empty list = all hours (no filtering).

obs_bucketsbooleanOptional

If True, additionally stratify RMSE / MAE / bias by the observed value's distribution. Each metric is reported per observed-value bucket: < P5, P5-P25, P25-P75, P75-P95, > P95 (plus an 'all' bucket). The P5/P25/P75/P95 thresholds are computed once over the selected stations and time window so the buckets are identical across models and lead times. This option is heavier than the default aggregation and requires exactly one variable.

Default: false
Responses
200

Successfully retrieved benchmark metrics

anyOptional
post/v1/station-benchmarks/metrics
POST /v1/station-benchmarks/metrics HTTP/1.1
Host: query.jua.ai
Content-Type: application/json
Accept: */*
Content-Length: 182

{
  "models": [
    "ept2"
  ],
  "geo": {
    "type": "market_zone",
    "value": "DE"
  },
  "start_time": "2024-10-01T00:00:00Z",
  "end_time": "2024-10-07T00:00:00Z",
  "variables": [
    "air_temperature_at_height_level_2m"
  ]
}
{
  "model": [
    "ept2",
    "ept2",
    "ept2",
    "ept2"
  ],
  "prediction_timedelta": [
    60,
    60,
    60,
    60
  ],
  "variable": [
    "air_temperature_at_height_level_2m",
    "air_temperature_at_height_level_2m",
    "air_temperature_at_height_level_2m",
    "air_temperature_at_height_level_2m"
  ],
  "metric": [
    "rmse",
    "mae",
    "bias",
    "crps"
  ],
  "avg": [
    1.23,
    0.98,
    -0.12,
    0.91
  ]
}

Get available benchmark dates

get

Retrieve available dates for station benchmark data with optional filtering.

Useful for:

  • Discovering available benchmark data

  • Finding recent benchmark dates

  • Planning benchmark queries

Authentication: Requires API key.

For more information, see docs.jua.ai.

Authorizations
Query parameters
modelstring · nullableOptional

Optional model name to filter by

days_lookbackinteger · min: 1 · max: 365Optional

Number of days to look back from today

Default: 365
Responses
200

Successfully retrieved available dates

application/json

Response containing available benchmark dates.

datesstring[]Required
get/v1/station-benchmarks/available-dates
GET /v1/station-benchmarks/available-dates HTTP/1.1
Host: query.jua.ai
Accept: */*
{
  "dates": [
    "2024-10-15",
    "2024-10-14",
    "2024-10-13"
  ]
}

Get solar-benchmark geographic coverage

get

List the country and market-zone codes that have at least one audited solar radiation station.

The surface-solar-radiation benchmark is scored only over stations that passed the offline radiation quality audit (a much smaller set than the synoptic network). This endpoint returns the regions where a solar country / market-zone benchmark can actually be computed, so the dashboard can restrict the solar-benchmark region pickers to non-empty selections.

Authentication: Requires API key.

Authorizations
Responses
200

Successfully retrieved solar coverage

application/json

Country / market-zone codes covered by the clean solar-station set.

country_keysstring[]Required
market_zonesstring[]Required
get/v1/station-benchmarks/solar-coverage
GET /v1/station-benchmarks/solar-coverage HTTP/1.1
Host: query.jua.ai
Accept: */*
{
  "country_keys": [
    "DE",
    "FR",
    "ES"
  ],
  "market_zones": [
    "DE",
    "FR",
    "ES"
  ]
}

Last updated