Skip to content

Commit 4f65a7b

Browse files
authored
Add CORDEX-CMIP6 support (#3112)
1 parent 48d6c13 commit 4f65a7b

17 files changed

Lines changed: 14249 additions & 1 deletion

doc/reference/facets.rst

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,38 @@ CMIP3
144144
| ``short_name`` | ``variable`` |
145145
+----------------------+-----------------------+
146146

147+
148+
CORDEX-CMIP6
149+
------------
150+
151+
`Official CORDEX-CMIP6 facets <https://doi.org/10.5281/zenodo.10961068>`__.
152+
153+
+----------------------+---------------------------+
154+
| ESMValCore facet | ESGF facet |
155+
+======================+===========================+
156+
| ``activity`` | ``activity_id`` |
157+
+----------------------+---------------------------+
158+
| ``dataset`` | ``source_id`` |
159+
+----------------------+---------------------------+
160+
| ``driver`` | ``driving_source_id`` |
161+
+----------------------+---------------------------+
162+
| ``domain`` | ``domain_id`` |
163+
+----------------------+---------------------------+
164+
| ``ensemble`` | ``driving_variant_label`` |
165+
+----------------------+---------------------------+
166+
| ``exp`` | ``driving_experiment_id`` |
167+
+----------------------+---------------------------+
168+
| ``frequency`` | ``frequency`` |
169+
+----------------------+---------------------------+
170+
| ``institute`` | ``institution_id`` |
171+
+----------------------+---------------------------+
172+
| ``project`` | ``project_id`` |
173+
+----------------------+---------------------------+
174+
| ``rcm_version`` | ``version_realization`` |
175+
+----------------------+---------------------------+
176+
| ``short_name`` | ``variable_id`` |
177+
+----------------------+---------------------------+
178+
147179
CORDEX
148180
-------
149181

@@ -168,6 +200,8 @@ used on ESGF. Below we present the facets used on ESGF.
168200
+----------------------+-----------------------+
169201
| ``institute`` | ``institute`` |
170202
+----------------------+-----------------------+
203+
| ``rcm_version`` | ``rcm_version`` |
204+
+----------------------+-----------------------+
171205
| ``short_name`` | ``variable`` |
172206
+----------------------+-----------------------+
173207

esmvalcore/cmor/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ def _load_table(self, json_file):
778778
self.tables[table_name] = table
779779
table = self.tables[table_name]
780780

781-
generic_levels = header["generic_levels"].split()
781+
generic_levels = header.get("generic_levels", "").split()
782782
self.var_to_freq[table.name] = {}
783783

784784
for var_name, var_data in raw_data["variable_entry"].items():
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"axis_entry": {
3+
"plev19": {
4+
"standard_name": "air_pressure",
5+
"units": "Pa",
6+
"axis": "Z",
7+
"long_name": "pressure",
8+
"climatology": "",
9+
"formula": "",
10+
"must_have_bounds": "no",
11+
"out_name": "plev",
12+
"positive": "down",
13+
"requested": [
14+
"100000.",
15+
"92500.",
16+
"85000.",
17+
"70000.",
18+
"60000.",
19+
"50000.",
20+
"40000.",
21+
"30000.",
22+
"25000.",
23+
"20000.",
24+
"15000.",
25+
"10000.",
26+
"7000.",
27+
"5000.",
28+
"3000.",
29+
"2000.",
30+
"1000.",
31+
"500.",
32+
"100."
33+
],
34+
"requested_bounds": "",
35+
"stored_direction": "decreasing",
36+
"tolerance": "",
37+
"type": "double",
38+
"valid_max": "",
39+
"valid_min": "",
40+
"value": "",
41+
"z_bounds_factors": "",
42+
"z_factors": "",
43+
"bounds_values": "",
44+
"generic_level_name": ""
45+
},
46+
"tau": {
47+
"standard_name": "atmosphere_optical_thickness_due_to_cloud",
48+
"units": "1",
49+
"axis": "",
50+
"long_name": "cloud optical thickness",
51+
"climatology": "",
52+
"formula": "",
53+
"must_have_bounds": "yes",
54+
"out_name": "tau",
55+
"positive": "",
56+
"requested": [
57+
"0.15",
58+
"0.8",
59+
"2.45",
60+
"6.5",
61+
"16.2",
62+
"41.5",
63+
"100."
64+
],
65+
"requested_bounds": [
66+
"0.0",
67+
"0.3",
68+
"0.3",
69+
"1.3",
70+
"1.3",
71+
"3.6",
72+
"3.6",
73+
"9.4",
74+
"9.4",
75+
"23.0",
76+
"23.0",
77+
"60.0",
78+
"60.0",
79+
"100000.0"
80+
],
81+
"stored_direction": "increasing",
82+
"tolerance": "",
83+
"type": "double",
84+
"valid_max": "",
85+
"valid_min": "",
86+
"value": "",
87+
"z_bounds_factors": "",
88+
"z_factors": "",
89+
"bounds_values": "",
90+
"generic_level_name": ""
91+
}
92+
}
93+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# CMIP7 CMOR Tables
2+
3+
Contents of the "Tables" directory was copied from
4+
https://github.com/WCRP-CORDEX/cordex-cmip6-cmor-tables/tree/v2026.03.0.
5+
6+
Version: [v2026.03.0](https://github.com/WCRP-CORDEX/cordex-cmip6-cmor-tables/releases/tag/v2026.03.0)

0 commit comments

Comments
 (0)