ojpv commited on
Commit
7625bf9
·
verified ·
1 Parent(s): cf51ab3

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +153 -0
README.md ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ pretty_name: "ClimX: extreme-aware climate model emulation"
5
+ tags:
6
+ - climate
7
+ - earth-system-model
8
+ - machine-learning
9
+ - emulation
10
+ - extremes
11
+ - netcdf
12
+ license: mit
13
+ task_categories:
14
+ - time-series-forecasting
15
+ - other
16
+ ---
17
+
18
+ <!-- NOTE: Math formatting convention: inline math uses \\( ... \\) and math blocks use $$ ... $$. -->
19
+
20
+ # ClimX: a challenge for extreme-aware climate model emulation
21
+
22
+ ClimX is a challenge about building **fast and accurate machine learning emulators** for the NorESM2-MM Earth System Model, with evaluation focused on **climate extremes** rather than mean climate alone.
23
+
24
+ ## Dataset summary
25
+
26
+ This dataset contains the **full-resolution** ClimX data in **NetCDF-4** format (targets + forcings, depending on split) with a native grid of \\(192 \times 288\\) (about \\(1^\circ\\)) resolution. It also contains the **lite-resolution** version, with a native grid of \\(12 \times 18\\) (about \\(16^\circ\\)) resolution:
27
+
28
+ - **Lite-resolution**: <1GB, \\(16\times\\) spatially coarsened, meant for rapid prototyping.
29
+ - **Full-resolution**: ~200GB, full-resolution data for large-scale training.
30
+
31
+ ## What you will do (high level)
32
+
33
+ You train an emulator that predicts **daily** 2D fields for 7 surface variables:
34
+
35
+ - `tas`, `tasmax`, `tasmin`
36
+ - `pr`, `huss`, `psl`, `sfcWind`
37
+
38
+ However, the **benchmark targets are 15 extreme indices** derived from daily temperature and precipitation (ETCCDI-style indices). The daily fields are an **intermediate output** your emulator produces (useful for diagnostics and for computing the indices).
39
+
40
+ Participants must therefore predict the daily target variables first. Direct prediction of the leaderboard indices is not allowed.
41
+
42
+ Conceptually:
43
+
44
+ $$
45
+ x_t = g(f_t, f_{t-1}, \dots, f_{t-\alpha}, x_{t-1}, x_{t-2}, \dots, x_{t-\beta})
46
+ $$
47
+
48
+ where \\(f_t\\) are forcings (greenhouse gases + aerosols) and \\(x_t\\) is the climate state.
49
+
50
+ ## Dataset structure
51
+
52
+ ### Spatial and temporal shape
53
+
54
+ Full-resolution daily fields:
55
+
56
+ - **Historical**: `lat: 192, lon: 288, time: 60224`
57
+ - **Projections**: `lat: 192, lon: 288, time: 31389`
58
+
59
+ ### Splits and scenarios (official challenge setup)
60
+
61
+ Training uses historical + several SSP scenarios; testing is on the held-out **SSP2-4.5** scenario:
62
+
63
+ - **Train**: historical (1850–2014) + `ssp126`, `ssp370`, `ssp585` (2015–2100)
64
+ - **Test (held-out)**: `ssp245` (2015–2100)
65
+
66
+ To avoid leakage, **targets for `ssp245` are withheld** in the official evaluation; only the **forcings** are provided for that scenario. The full outputs will be released after the competition.
67
+
68
+ ## Evaluation metric
69
+
70
+ The primary leaderboard metric is the region-wise **normalized Nash–Sutcliffe efficiency (nNSE)**, averaged over 15 climate extreme indices.
71
+
72
+ For each index \\(v\\), grid cell \\((i,j)\\), a validity mask \\(\mathcal{V}\\) excludes cells with negligible temporal variability. Cell-level \\(R^2\\) and nNSE are:
73
+
74
+ $$
75
+ R^2_{ij} = 1 - \frac{\mathrm{MSE}_{ij}}{\mathrm{Var}_t(gt_{ij})}, \qquad \mathrm{nNSE}_{ij} = \frac{R^2_{ij}}{2 - R^2_{ij}}
76
+ $$
77
+
78
+ For each AR6 land region \\(k\\), the area-weighted regional score is:
79
+
80
+ $$
81
+ \mathrm{nNSE}_{kv} = \frac{\sum_{(i,j)\in k \cap \mathcal{V}} \cos\phi_i \, \mathrm{nNSE}_{ij}}{\sum_{(i,j)\in k \cap \mathcal{V}} \cos\phi_i}
82
+ $$
83
+
84
+ The final score averages uniformly over valid regions and indices:
85
+
86
+ $$
87
+ S = \frac{1}{|V|} \sum_{v \in V} \frac{1}{|K_v|} \sum_{k \in K_v} \mathrm{nNSE}_{kv}
88
+ $$
89
+
90
+ \\(S=1\\) is perfect agreement, \\(S=0\\) corresponds to a mean predictor, and \\(S \to -1\\) is pathological.
91
+
92
+ ## How to load the data
93
+
94
+ This dataset is distributed as **NetCDF-4** files. There are two common ways to load it.
95
+
96
+ ### Option 1 (recommended): clone the ClimX code and use the helper loader
97
+
98
+ The ClimX repository already includes a helper module (`src/data/climx_hf.py`) that allows you to download the dataset from Hugging Face and open it as three lazily-loaded “virtual” xarray datasets:
99
+
100
+ ```bash
101
+ git clone https://github.com/IPL-UV/ClimX.git
102
+ cd ClimX
103
+ pip install -U "huggingface-hub" xarray netcdf4 dask
104
+ ```
105
+
106
+ ```python
107
+ from src.data.climx_hf import download_climx_from_hf, open_climx_virtual_datasets
108
+
109
+ # Download NetCDF artifacts from HF into a local cache directory.
110
+ root = download_climx_from_hf("/path/to/hf_cache", variant="full")
111
+
112
+ # Open as three virtual datasets (lazy / dask-friendly).
113
+ ds = open_climx_virtual_datasets(root, variant="full") # or "lite"
114
+
115
+ ds.hist # historical (targets + forcings)
116
+ ds.train # projections training scenarios (targets + forcings; excludes `ssp245` scenario)
117
+ ds.test_forcings # `ssp245` scenario forcings only (no targets)
118
+ ```
119
+
120
+ ### Option 2: download NetCDFs and open with xarray directly
121
+
122
+ You can also download files from Hugging Face and open them with **xarray**.
123
+
124
+ Example:
125
+
126
+ ```python
127
+ from huggingface_hub import hf_hub_download
128
+ import xarray as xr
129
+
130
+ path = hf_hub_download(
131
+ repo_id="isp-uv-es/ClimX",
132
+ repo_type="dataset",
133
+ filename="PATH/TO/A/FILE.nc", # replace with an actual file in this dataset repo
134
+ )
135
+ ds = xr.open_dataset(path)
136
+ print(ds)
137
+ ```
138
+
139
+ ## Links
140
+
141
+ - [Kaggle main track](https://www.kaggle.com/competitions/climx)
142
+ - [Kaggle UQ track](https://www.kaggle.com/competitions/clim-x-uq-track)
143
+ - [Full dataset (this page)](https://huggingface.co/datasets/isp-uv-es/ClimX)
144
+ - [Public code repository (challenge materials)](https://github.com/IPL-UV/ClimX)
145
+ - [Website](https://ipl-uv.github.io/ClimX/)
146
+
147
+ ## Sponsorship
148
+
149
+ ClimX is supported by ESA Phi-lab, which sponsors challenge prizes and travel support for winning teams.
150
+
151
+ ## License and usage
152
+
153
+ The dataset is released under **MIT**. In addition, if you are participating in the ClimX competition, please follow the competition rules (notably: restrictions on external climate training data and redistribution of competition data).