Skip to contents

Returns full grid of (model_id, target, designated) for the requested models and targets, resolved from current model metadata: the fields designated_model and the optional designated_targets list. If designated_model is FALSE: never designated. If designated_model is TRUE and designated_targets is absent or empty: designated for every target. If designated_model is TRUE and designated_targets is present: designated only for listed targets.

Usage

get_model_designation_current(base_hub_path, model_ids = NULL, targets = NULL)

Arguments

base_hub_path

character, path to the base hub directory.

model_ids

character vector of model IDs to include, or NULL (default) to include all models with metadata in the hub.

targets

character vector of target names to include, or NULL (default) to include all targets supported by the hub.

Value

A tibble with columns model_id, target, and designated (logical), with one row per (model, target) combination.

Details

This describes models as they are today. This is only correct for the current reference date. Use get_model_designation_as_of() for a past one. The exception is generate_hub_ensemble(), which writes the record the as-of version reads.