climate_ref_esmvaltool.reference_registry
#
Reading the keys of the ESMValTool reference data registry.
A :class:~climate_ref_core.esgf.RegistryRequest for this registry is built with
:func:parse_registry_key, so that a request for reference data filters on the facets
the ingest catalog records rather than on a second spelling of them.
parse_registry_key(key)
#
Parse a registry key into the facets its path carries.
A key is the file's DRS path relative to the data root, so it reads the same way the ingest adapter reads the downloaded file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
key
|
str
|
The registry key (path) to parse. |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
The facets the key carries, plus the key itself. An empty dict if the key is not a reference file, which skips it. |