taohan10200 commited on
Commit
3abfd14
·
verified ·
1 Parent(s): 7d1d7d3

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +449 -3
README.md CHANGED
@@ -1,3 +1,449 @@
1
- ---
2
- license: bsd-3-clause-clear
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cdla-sharing-1.0
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - compression
6
+ tags:
7
+ - climate
8
+ - weather
9
+ - era5
10
+ - cra5
11
+ pretty_name: CRA5 ERA5 Dataset
12
+ size_categories:
13
+ - 1T<n<10T
14
+ ---
15
+
16
+
17
+ <!-- ![ID-CompressAI-logo](assets/CRA5LOGO.svg =750x140) -->
18
+ <a href="url"><img src="assets/CRA5LOGO.svg" align="center"></a>
19
+
20
+ [![License](https://img.shields.io/github/license/InterDigitalInc/CompressAI?color=blue)](https://github.com/InterDigitalInc/CompressAI/blob/master/LICENSE)
21
+ [![PyPI](https://img.shields.io/pypi/v/cra5?color=brightgreen)](https://pypi.org/project/compressai/)
22
+ [![Downloads](https://pepy.tech/badge/cra5)](https://pypi.org/project/cra5/#files)
23
+
24
+ <div align="center">
25
+
26
+ [![Nature](https://img.shields.io/badge/Nature_Portfolio-Communications_Earth_%26_Environment-000000?style=for-the-badge&logo=nature)](https://www.nature.com/articles/s43247-025-02903-z)
27
+
28
+ ### [Climate science data can be compressed efficiently by dual-stage extreme compression with a variational auto-encoder transformer](https://www.nature.com/articles/s43247-025-02903-z)
29
+
30
+ </div>
31
+
32
+ # Introduction and get started
33
+ ### CRA5 dataset now is available at [OneDrive](https://hkustconnect-my.sharepoint.com/:f:/g/personal/thanad_connect_ust_hk/EjGupNV_IcZKre1PdN65dFUB2sBOHX3MCH4cycBtcSm2yA?e=GAqS1J)
34
+
35
+ ## Paper Summary
36
+ We introduce **VAEformer**, a variational autoencoder transformer designed for the extreme compression of climate data. Addressing the storage challenges of massive datasets like ERA5, VAEformer utilizes a low-complexity transformer with variance inference to achieve high compression efficiency.
37
+
38
+ We successfully compressed the **226 TB ERA5 dataset into the 0.7 TB CRA5 dataset**, achieving a **>300x compression ratio**. Despite this extreme reduction, CRA5 retains high scientific utility; global weather forecasting models trained on CRA5 achieve accuracy comparable to those trained on the original data, significantly lowering the barrier for AI-based meteorological research.
39
+
40
+ CRA5 is a extreme **compressed weather dataset** of the most popular ERA5 reanalysis dataset. The repository also includes **compression models**, **forecasting model** for researchers to conduct portable weather and climate research.
41
+
42
+ CRA5 currently provides:
43
+
44
+ * A customized variaitional transformer (VAEformer) for climate data compression
45
+ * A dataset CRA5 less than 1 TiB, but contains the same information with 400+ TiB ERA5 dataset. Covering houly ERA5 from year 1979 to 2023.
46
+ * A pre-trained Auto-Encoder on the climate/weather data to support some potential weather research.
47
+
48
+
49
+
50
+ > **Note**: Multi-GPU support is now experimental.
51
+
52
+ ## Installation
53
+
54
+ CRA5 supports python 3.8+ and PyTorch 1.7+.
55
+ ```
56
+ conda create --name cra5 python=3.10 -y
57
+ conda activate cra5
58
+ ```
59
+
60
+
61
+ **Please install cra5 from source**:
62
+
63
+ A C++17 compiler, a recent version of pip (19.0+), and common python packages are also required (see `setup.py` for the full list).
64
+
65
+ To get started locally and install the development version of CRA5, run the following commands in a [virtual environment](https://docs.python.org/3.6/library/venv.html):
66
+
67
+ ```bash
68
+ git clone https://github.com/taohan10200/CRA5
69
+ cd CRA5
70
+
71
+ pip install -U pip && pip install -e .
72
+ ```
73
+
74
+ <!-- For a custom installation, you can also run one of the following commands:
75
+ * `pip install -e '.[dev]'`: install the packages required for development (testing, linting, docs)
76
+ * `pip install -e '.[tutorials]'`: install the packages required for the tutorials (notebooks)
77
+ * `pip install -e '.[all]'`: install all the optional packages -->
78
+
79
+
80
+
81
+ <!-- ## Documentation -->
82
+
83
+ <!-- * [Installation](https://interdigitalinc.github.io/CompressAI/installation.html)
84
+ * [CompressAI API](https://interdigitalinc.github.io/CompressAI/)
85
+ * [Training your own model](https://interdigitalinc.github.io/CompressAI/tutorials/tutorial_train.html)
86
+ * [List of available models (model zoo)](https://interdigitalinc.github.io/CompressAI/zoo.html) -->
87
+
88
+ # Test
89
+ ```
90
+ python test.py
91
+ ```
92
+
93
+ # Usages
94
+ ## Using with API:
95
+ > Supporting functions like: Compression / decompression / latents representation / feature visulization / reconstructed visulization
96
+
97
+ ### Step 1: Download from Hugging Face
98
+ We provide a simple way to download the data using `huggingface_hub`.
99
+
100
+ ```python
101
+ from huggingface_hub import hf_hub_download
102
+
103
+ # Download CRA5 binary file for a specific timestamp (e.g., 2022-01-01T00:00:00)
104
+ local_bin_path = hf_hub_download(
105
+ repo_id="taohan10200/CRA5-Dataset",
106
+ repo_type="dataset",
107
+ filename="2022/2022-01-01T00:00:00.bin",
108
+ local_dir="./data/CRA5"
109
+ )
110
+ print(f"Downloaded to: {local_bin_path}")
111
+ ```
112
+
113
+ ### Step 2: Use CRA5 API for Decompression and Visualization
114
+
115
+ ```python
116
+ # We build a downloader to help use download the original ERA5 netcdf files for testing.
117
+
118
+ # data/ERA5/2024/2024-06-01T00:00:00_pressure.nc (513MiB) and data/ERA5/2024/2024-06-01T00:00:00_single.nc (18MiB)
119
+ from cra5.api.era5_downloader import era5_downloader
120
+ ERA5_data = era5_downloader('./cra5/api/era5_config.py') #specify the dataset config for what we want to download
121
+ data = ERA5_data.get_form_timestamp(time_stamp="2024-06-01T00:00:00",
122
+ local_root='./data/ERA5')
123
+
124
+ # After getting the ERA5 data ready, you can explore the compression.
125
+ from cra5.api import cra5_api
126
+ cra5_API = cra5_api()
127
+
128
+ ####=======================compression functions=====================
129
+ # Return a continuous latent y for ERA5 data at 2024-06-01T00:00:00
130
+ y = cra5_API.encode_to_latent(time_stamp="2024-06-01T00:00:00")
131
+
132
+ # Return the the arithmetic coded binary stream of y
133
+ bin_stream = cra5_API.latent_to_bin(y=y)
134
+
135
+ # Or if you want to directly compress and save the binary stream to a folder
136
+ cra5_API.encode_era5_as_bin(time_stamp="2024-06-01T00:00:00", save_root='./data/cra5')
137
+
138
+
139
+ ####=======================decompression functions=====================
140
+ # Starting from the bin_stream, you can decode the binary file to the quantized latent.
141
+ y_hat = cra5_API.bin_to_latent(bin_path="./data/CRA5/2024/2024-06-01T00:00:00.bin") # Decoding from binary can only get the quantized latent.
142
+
143
+ # Return the normalized cra5 data
144
+ normlized_x_hat = cra5_API.latent_to_reconstruction(y_hat=y_hat)
145
+
146
+
147
+ # If you have saveed or downloaded the binary file, then you can directly restore the binary file into reconstruction.
148
+ normlized_x_hat = cra5_API.decode_from_bin("2024-06-01T00:00:00", return_format='normalized') # Return the normalized cra5 data
149
+ x_hat = cra5_API.decode_from_bin("2024-06-01T00:00:00", return_format='de_normalized') # Return the de-normalized cra5 data
150
+
151
+ # Show some channels of the latent
152
+ cra5_API.show_latent(
153
+ latent=y_hat.squeeze(0).cpu().numpy(),
154
+ time_stamp="2024-06-01T00:00:00",
155
+ show_channels=[0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150],
156
+ save_path = './data/vis')
157
+
158
+ ```
159
+ <!-- ![ID-CompressAI-logo](assets/2024-06-01T00:00:00_latent.png =400x140) -->
160
+ <a href="url"><img src="assets/2024-06-01T00_latent.png" align="center"></a>
161
+
162
+ ```python
163
+ # show some variables for the constructed data
164
+ cra5_API.show_image(
165
+ reconstruct_data=x_hat.cpu().numpy(),
166
+ time_stamp="2024-06-01T00:00:00",
167
+ show_variables=['z_500', 'q_500', 'u_500', 'v_500', 't_500', 'w_500'],
168
+ save_path = './data/vis')
169
+ ```
170
+
171
+ <!-- ![ID-CompressAI-logo](assets/CRA5LOGO.svg =400x140) -->
172
+ <a href="url"><img src="assets/2024-06-01T00.png" align="center"></a>
173
+
174
+
175
+
176
+ ### Or using with the pre-trained model
177
+
178
+ ```python
179
+ import os
180
+ import torch
181
+ from cra5.models.compressai.zoo import vaeformer_pretrained
182
+ device = 'cuda' if torch.cuda.is_available() else 'cpu'
183
+ print(device)
184
+ net = vaeformer_pretrained(quality=268, pretrained=True).eval().to(device)
185
+ input_data_norm = torch.rand(1,268, 721,1440).to(device) #This is a proxy weather data. It actually should be a
186
+
187
+ print(x.shape)
188
+ with torch.no_grad():
189
+ out_net = net.compress(x)
190
+
191
+ print(out_net)
192
+ ```
193
+
194
+
195
+
196
+ # Features
197
+
198
+ ## 1. CRA5 dataset is a product of the VAEformer applied in the atmospheric science. We explore this to facilitate the research in weather and climate.
199
+
200
+ * **Train the large data-driven numerical weather forecasting models with our CRA5**
201
+
202
+ > **Note**: For researches who do not have enough disk space to store the 300 TiB+ ERA5 dataset, but have interests to train a large weather forecasting model, like [FengWu-GHR](https://arxiv.org/abs/2402.00059), this research can help you save it into less than 1 TiB disk.
203
+
204
+ Our preliminary attemp has proven that the CRA5 dataset can train the very very similar NWP model compared with the original ERA5 dataset. Also, with this dataset, you can easily train a Nature published forecasting model, like [Pangu-Weather](https://www.nature.com/articles/s41586-023-06185-3).
205
+
206
+ <!-- ![ID-CompressAI-logo](assets/rmse_acc_bias_activity.png =400x140) -->
207
+ <a href="url"><img src="assets/rmse_acc_bias_activity.png" align="center"></a>
208
+
209
+ ## 2. VAEformer is a powerful compression model, we hope it can be extended to other domains, like image and video compression.
210
+
211
+ <!-- ![ID-CompressAI-logo](assets/MSE_supp_new.png =400x140) -->
212
+ <a href="url"><img src="assets/MSE_supp_new.png" align="center"></a>
213
+
214
+
215
+
216
+ ## 3 VAEformer is based on the Auto-Encoder-Decoder, we provide a pretrained VAE for the weather research, you can use our VAEformer to get the latents for downstream research, like diffusion-based or other generation-based forecasting methods.
217
+
218
+ * **Using it as a Auto-Encoder-Decoder**
219
+
220
+ > **Note**: For people who are intersted in diffusion-based or other generation-based forecasting methods, we can provide an Auto Encoder and decoder for the weather research, you can use our VAEformer to get the latents for downstream research.
221
+
222
+
223
+
224
+
225
+ <!-- Script and notebook examples can be found in the `examples/` directory.
226
+
227
+ To encode/decode images with the provided pre-trained models, run the
228
+ `codec.py` example:
229
+
230
+ ```bash
231
+ python3 examples/codec.py --help
232
+ ```
233
+
234
+ An examplary training script with a rate-distortion loss is provided in
235
+ `examples/train.py`. You can replace the model used in the training script
236
+ with your own model implemented within CompressAI, and then run the script for a
237
+ simple training pipeline:
238
+
239
+ ```bash
240
+ python3 examples/train.py -d /path/to/my/image/dataset/ --epochs 300 -lr 1e-4 --batch-size 16 --cuda --save
241
+ ```
242
+ > **Note:** the training example uses a custom [ImageFolder](https://interdigitalinc.github.io/CompressAI/datasets.html#imagefolder) structure.
243
+
244
+ A jupyter notebook illustrating the usage of a pre-trained model for learned image
245
+ compression is also provided in the `examples` directory:
246
+
247
+ ```bash
248
+ pip install -U ipython jupyter ipywidgets matplotlib
249
+ jupyter notebook examples/
250
+ ``` -->
251
+
252
+ <!-- ### Evaluation
253
+
254
+ To evaluate a trained model on your own dataset, CompressAI provides an
255
+ evaluation script:
256
+
257
+ ```bash
258
+ python3 -m compressai.utils.eval_model checkpoint /path/to/images/folder/ -a $ARCH -p $MODEL_CHECKPOINT...
259
+ ```
260
+
261
+ To evaluate provided pre-trained models:
262
+
263
+ ```bash
264
+ python3 -m compressai.utils.eval_model pretrained /path/to/images/folder/ -a $ARCH -q $QUALITY_LEVELS...
265
+ ```
266
+
267
+ To plot results from bench/eval_model simulations (requires matplotlib by default):
268
+
269
+ ```bash
270
+ python3 -m compressai.utils.plot --help -->
271
+ <!-- ``` -->
272
+
273
+ <!-- To evaluate traditional codecs:
274
+
275
+ ```bash
276
+ python3 -m compressai.utils.bench --help
277
+ python3 -m compressai.utils.bench bpg --help
278
+ python3 -m compressai.utils.bench vtm --help
279
+ ```
280
+
281
+ For video, similar tests can be run, CompressAI only includes ssf2020 for now:
282
+
283
+ ```bash
284
+ python3 -m compressai.utils.video.eval_model checkpoint /path/to/video/folder/ -a ssf2020 -p $MODEL_CHECKPOINT...
285
+ python3 -m compressai.utils.video.eval_model pretrained /path/to/video/folder/ -a ssf2020 -q $QUALITY_LEVELS...
286
+ python3 -m compressai.utils.video.bench x265 --help
287
+ python3 -m compressai.utils.video.bench VTM --help
288
+ python3 -m compressai.utils.video.plot --help
289
+ ``` -->
290
+
291
+ <!-- ## Tests
292
+
293
+ Run tests with `pytest`:
294
+
295
+ ```bash
296
+ pytest -sx --cov=compressai --cov-append --cov-report term-missing tests
297
+ ```
298
+
299
+ Slow tests can be skipped with the `-m "not slow"` option. -->
300
+
301
+
302
+ ## License
303
+
304
+ CompressAI is licensed under the BSD 3-Clause Clear License
305
+
306
+ ## Contributing
307
+
308
+ We welcome feedback and contributions. Please open a GitHub issue to report
309
+ bugs, request enhancements or if you have any questions.
310
+
311
+ Before contributing, please read the CONTRIBUTING.md file.
312
+
313
+ ## Authors
314
+
315
+ * Tao Han ([hantao10200@gmail.com](mailto:hantao10200@gmail.com))
316
+ * Zhenghao Chen.
317
+
318
+ ## Citation
319
+
320
+ If you use this project, please cite the relevant original publications for the models and datasets, and cite this project as:
321
+
322
+ ```
323
+ @article{han2024cra5extremecompressionera5,
324
+ title={CRA5: Extreme Compression of ERA5 for Portable Global Climate and Weather Research via an Efficient Variational Transformer},
325
+ author={Tao Han and Zhenghao Chen and Song Guo and Wanghan Xu and Lei Bai},
326
+ year={2024},
327
+ eprint={2405.03376},
328
+ archivePrefix={arXiv},
329
+ primaryClass={cs.LG},
330
+ url={https://arxiv.org/abs/2405.03376},
331
+ }
332
+ ```
333
+
334
+ For any work related to the forecasting models, please cite
335
+ ```
336
+ @article{han2024fengwughr,
337
+ title={FengWu-GHR: Learning the Kilometer-scale Medium-range Global Weather Forecasting},
338
+ author={Tao Han and Song Guo and Fenghua Ling and Kang Chen and Junchao Gong and Jingjia Luo and Junxia Gu and Kan Dai and Wanli Ouyang and Lei Bai},
339
+ year={2024},
340
+ eprint={2402.00059},
341
+ archivePrefix={arXiv},
342
+ primaryClass={cs.LG}
343
+ }
344
+ ```
345
+
346
+ ## The weather variabls supported in CRA5 and their numerical error
347
+
348
+ CRA5 contains a total of 268 variables, including 7 pressure-level variables from the [ERA5 pressure level archive](https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-pressure-levels) and 9 [surface variables](https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=overview) .
349
+
350
+ | Variable | channel | error | Variable | channel | error | Variable | channel | error |Variable | channel | error |Variable | channel | error |
351
+ |--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|
352
+ | geopotential | z_1000 | 9.386 | specific_humidity | q_1000 | 0.00033 | u_component_of_wind | u_1000 | 0.416 |v_component_of_wind | v_1000 | 0.411 | temperature | t_1000 | 0.405 |
353
+ | geopotential | z_975 | 7.857 | specific_humidity | q_975 | 0.00032 | u_component_of_wind | u_975 | 0.448 |v_component_of_wind | v_975 | 0.442 | temperature | t_975 | 0.380 |
354
+ | geopotential | z_950 | 6.802 | specific_humidity | q_950 | 0.00035 | u_component_of_wind | u_950 | 0.491 |v_component_of_wind | v_950 | 0.479 | temperature | t_950 | 0.352 |
355
+ | geopotential | z_925 | 6.088 | specific_humidity | q_925 | 0.00037 | u_component_of_wind | u_925 | 0.520 |v_component_of_wind | v_925 | 0.505 | temperature | t_925 | 0.333 |
356
+ | geopotential | z_900 | 5.575 | specific_humidity | q_900 | 0.00036 | u_component_of_wind | u_900 | 0.518 |v_component_of_wind | v_900 | 0.503 | temperature | t_900 | 0.321 |
357
+ | geopotential | z_875 | 5.259 | specific_humidity | q_875 | 0.00035 | u_component_of_wind | u_875 | 0.517 |v_component_of_wind | v_875 | 0.503 | temperature | t_875 | 0.309 |
358
+ | geopotential | z_850 | 5.061 | specific_humidity | q_850 | 0.00034 | u_component_of_wind | u_850 | 0.508 |v_component_of_wind | v_850 | 0.493 | temperature | t_850 | 0.294 |
359
+ | geopotential | z_825 | 4.941 | specific_humidity | q_825 | 0.00031 | u_component_of_wind | u_825 | 0.496 |v_component_of_wind | v_825 | 0.481 | temperature | t_825 | 0.276 |
360
+ | geopotential | z_800 | 4.897 | specific_humidity | q_800 | 0.00029 | u_component_of_wind | u_800 | 0.487 |v_component_of_wind | v_800 | 0.472 | temperature | t_800 | 0.259 |
361
+ | geopotential | z_775 | 4.947 | specific_humidity | q_775 | 0.00027 | u_component_of_wind | u_775 | 0.486 |v_component_of_wind | v_775 | 0.468 | temperature | t_775 | 0.250 |
362
+ | geopotential | z_750 | 5.120 | specific_humidity | q_750 | 0.00029 | u_component_of_wind | u_750 | 0.545 |v_component_of_wind | v_750 | 0.524 | temperature | t_750 | 0.250 |
363
+ | geopotential | z_700 | 5.593 | specific_humidity | q_700 | 0.00029 | u_component_of_wind | u_700 | 0.638 |v_component_of_wind | v_700 | 0.607 | temperature | t_700 | 0.242 |
364
+ | geopotential | z_650 | 5.810 | specific_humidity | q_650 | 0.00025 | u_component_of_wind | u_650 | 0.634 |v_component_of_wind | v_650 | 0.610 | temperature | t_700 | 0.242 |
365
+ | geopotential | z_600 | 5.882 | specific_humidity | q_600 | 0.00020 | u_component_of_wind | u_600 | 0.633 |v_component_of_wind | v_600 | 0.597 | temperature | t_650 | 0.240 |
366
+ | geopotential | z_550 | 5.958 | specific_humidity | q_550 | 0.00018 | u_component_of_wind | u_550 | 0.668 |v_component_of_wind | v_550 | 0.616 | temperature | t_600 | 0.222 |
367
+ | geopotential | z_500 | 6.098 | specific_humidity | q_500 | 0.00014 | u_component_of_wind | u_500 | 0.676 |v_component_of_wind | v_500 | 0.603 | temperature | t_550 | 0.201 |
368
+ | geopotential | z_450 | 6.408 | specific_humidity | q_450 | 0.00010 | u_component_of_wind | u_450 | 0.699 |v_component_of_wind | v_450 | 0.649 | temperature | t_500 | 0.185 |
369
+ | geopotential | z_400 | 6.851 | specific_humidity | q_400 | 0.00007 | u_component_of_wind | u_400 | 0.733 |v_component_of_wind | v_400 | 0.686 | temperature | t_450 | 0.185 |
370
+ | geopotential | z_350 | 7.366 | specific_humidity | q_350 | 0.00004 | u_component_of_wind | u_350 | 0.760 |v_component_of_wind | v_350 | 0.704 | temperature | t_400 | 0.179 |
371
+ | geopotential | z_300 | 8.324 | specific_humidity | q_300 | 0.00002 | u_component_of_wind | u_300 | 0.744 |v_component_of_wind | v_300 | 0.704 | temperature | t_350 | 0.170 |
372
+ | geopotential | z_250 | 8.100 | specific_humidity | q_250 | 0.00001 | u_component_of_wind | u_250 | 0.765 |v_component_of_wind | v_250 | 0.701 | temperature | t_300 | 0.160 |
373
+ | geopotential | z_225 | 7.698 | specific_humidity | q_225 | 0.00001 | u_component_of_wind | u_225 | 0.722 |v_component_of_wind | v_225 | 0.642 | temperature | t_250 | 0.166 |
374
+ | geopotential | z_200 | 7.900 | specific_humidity | q_200 | 0.00000 | u_component_of_wind | u_200 | 0.646 |v_component_of_wind | v_200 | 0.563 | temperature | t_225 | 0.169 |
375
+ | geopotential | z_175 | 8.059 | specific_humidity | q_175 | 0.00000 | u_component_of_wind | u_175 | 0.565 |v_component_of_wind | v_175 | 0.509 | temperature | t_200 | 0.158 |
376
+ | geopotential | z_150 | 8.928 | specific_humidity | q_150 | 0.00000 | u_component_of_wind | u_150 | 0.525 |v_component_of_wind | v_150 | 0.458 | temperature | t_150 | 0.149 |
377
+ | geopotential | z_125 | 10.813 | specific_humidity | q_125 | 0.00000 | u_component_of_wind | u_125 | 0.479 |v_component_of_wind | v_125 | 0.417 | temperature | t_125 | 0.158 |
378
+ | geopotential | z_100 | 15.956 | specific_humidity | q_100 | 0.00000 | u_component_of_wind | u_100 | 0.447 |v_component_of_wind | v_100 | 0.373 | temperature | t_100 | 0.178 |
379
+ | geopotential | z_70 | 11.158 | specific_humidity | q_70 | 0.00000 | u_component_of_wind | u_70 | 0.360 |v_component_of_wind | v_70 | 0.275 | temperature | t_70 | 0.155 |
380
+ | geopotential | z_50 | 11.962 | specific_humidity | q_50 | 0.00000 | u_component_of_wind | u_50 | 0.356 |v_component_of_wind | v_50 | 0.242 | temperature | t_50 | 0.158 |
381
+ | geopotential | z_30 | 13.317 | specific_humidity | q_30 | 0.00000 | u_component_of_wind | u_30 | 0.348 |v_component_of_wind | v_30 | 0.221 | temperature | t_30 | 0.153 |
382
+ | geopotential | z_20 | 16.538 | specific_humidity | q_20 | 0.00000 | u_component_of_wind | u_20 | 0.361 |v_component_of_wind | v_20 | 0.229 | temperature | t_20 | 0.161 |
383
+ | geopotential | z_10 | 19.751 | specific_humidity | q_10 | 0.00000 | u_component_of_wind | u_10 | 0.350 |v_component_of_wind | v_10 | 0.232 | temperature | t_10 | 0.166 |
384
+ | geopotential | z_7 | 20.925 | specific_humidity | q_7 | 0.00000 | u_component_of_wind | u_7 | 0.315 |v_component_of_wind | v_7 | 0.225 | temperature | t_7 | 0.161 |
385
+ | geopotential | z_5 | 20.825 | specific_humidity | q_5 | 0.00000 | u_component_of_wind | u_5 | 0.307 |v_component_of_wind | v_5 | 0.212 | temperature | t_5 | 0.160 |
386
+ | geopotential | z_3 | 24.529 | specific_humidity | q_3 | 0.00000 | u_component_of_wind | u_3 | 0.333 |v_component_of_wind | v_3 | 0.246 | temperature | t_3 | 0.194 |
387
+ | geopotential | z_2 | 28.055 | specific_humidity | q_2 | 0.00000 | u_component_of_wind | u_2 | 0.338 |v_component_of_wind | v_2 | 0.239 | temperature | t_2 | 0.184 |
388
+ | geopotential | z_1 | 27.987 | specific_humidity | q_1 | 0.00000 | u_component_of_wind | u_1 | 0.363 |v_component_of_wind | v_1 | 0.245 | temperature | t_1 | 0.182 |
389
+ |--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|--------|---------|-----------|
390
+ | relative_humidity | r_1000 | 3.073 | vertical_velocity w_1000 | 0.059 || 10m_v_component_of_wind | v10 | 0.367 |
391
+ | relative_humidity | r_975 | 3.192 | vertical_velocity w_975 | 0.067 || 10m_u_component_of_wind | u10 | 0.379 |
392
+ | relative_humidity | r_950 | 3.588 | vertical_velocity w_950 | 0.078 || 100m_v_component_of_wind | v100 | 0.435 |
393
+ | relative_humidity | r_925 | 3.877 | vertical_velocity w_925 | 0.086 || 100m_u_component_of_wind | u100 | 0.445 |
394
+ | relative_humidity | r_900 | 3.982 | vertical_velocity w_900 | 0.090 || 2m_temperature | t2m | 0.720 |
395
+ | relative_humidity | r_875 | 4.011 | vertical_velocity w_875 | 0.092 || total_cloud_cover | tcc | 0.146 |
396
+ | relative_humidity | r_850 | 3.933 | vertical_velocity w_850 | 0.093 || surface_pressure | sp | 480.222
397
+ | relative_humidity | r_825 | 3.789 | vertical_velocity w_825 | 0.094 || total_precipitation | tp1h | 0.264 |
398
+ | relative_humidity | r_800 | 3.555 | vertical_velocity w_800 | 0.096 || mean_sea_level_pressure | msl | 12.685 |
399
+ | relative_humidity | r_775 | 3.449 | vertical_velocity w_775 | 0.099 |
400
+ | relative_humidity | r_750 | 3.816 | vertical_velocity w_750 | 0.102 |
401
+ | relative_humidity | r_700 | 4.265 | vertical_velocity w_700 | 0.110 |
402
+ | relative_humidity | r_650 | 4.223 | vertical_velocity w_650 | 0.114 |
403
+ | relative_humidity | r_600 | 4.183 | vertical_velocity w_600 | 0.112 |
404
+ | relative_humidity | r_550 | 4.411 | vertical_velocity w_550 | 0.106 |
405
+ | relative_humidity | r_500 | 4.409 | vertical_velocity w_500 | 0.101 |
406
+ | relative_humidity | r_450 | 4.675 | vertical_velocity w_450 | 0.096 |
407
+ | relative_humidity | r_400 | 4.831 | vertical_velocity w_400 | 0.091 |
408
+ | relative_humidity | r_350 | 4.932 | vertical_velocity w_350 | 0.084 |
409
+ | relative_humidity | r_300 | 5.151 | vertical_velocity w_300 | 0.075 |
410
+ | relative_humidity | r_250 | 5.134 | vertical_velocity w_250 | 0.056 |
411
+ | relative_humidity | r_225 | 4.682 | vertical_velocity w_225 | 0.046 |
412
+ | relative_humidity | r_200 | 3.899 | vertical_velocity w_200 | 0.039 |
413
+ | relative_humidity | r_175 | 3.063 | vertical_velocity w_175 | 0.034 |
414
+ | relative_humidity | r_150 | 2.508 | vertical_velocity w_150 | 0.029 |
415
+ | relative_humidity | r_125 | 2.123 | vertical_velocity w_125 | 0.024 |
416
+ | relative_humidity | r_100 | 1.844 | vertical_velocity w_100 | 0.018 |
417
+ | relative_humidity | r_70 | 0.487 | vertical_velocity w_70 | 0.010 |
418
+ | relative_humidity | r_50 | 0.151 | vertical_velocity w_50 | 0.007 |
419
+ | relative_humidity | r_30 | 0.097 | vertical_velocity w_30 | 0.005 |
420
+ | relative_humidity | r_20 | 0.083 | vertical_velocity w_20 | 0.003 |
421
+ | relative_humidity | r_10 | 0.033 | vertical_velocity w_10 | 0.002 |
422
+ | relative_humidity | r_7 | 0.016 | vertical_velocity w_7 | 0.001 |
423
+ | relative_humidity | r_5 | 0.008 | vertical_velocity w_5 | 0.001 |
424
+ | relative_humidity | r_3 | 0.003 | vertical_velocity w_3 | 0.001 |
425
+ | relative_humidity | r_2 | 0.001 | vertical_velocity w_2 | 0.000 |
426
+ | relative_humidity | r_1 | 0.000 | vertical_velocity w_1 | 0.000 |
427
+
428
+
429
+
430
+ ## Related links
431
+ * CompressAI Library: https://github.com/InterDigitalInc/CompressAI
432
+
433
+ ## Citation
434
+ If you find this work useful for your research, please cite our paper:
435
+ ```bibtex
436
+ @article{han2025climate,
437
+ title={Climate science data can be compressed efficiently by dual-stage extreme compression with a variational auto-encoder transformer},
438
+ author={Han, Tao and Chen, Zhenghao and Guo, Song and Xu, Wanghan and Ouyang, Wanli and Bai, Lei},
439
+ journal={Communications Earth \& Environment},
440
+ volume={6},
441
+ number={1},
442
+ pages={955},
443
+ year={2025},
444
+ publisher={Nature Portfolio},
445
+ doi={10.1038/s43247-025-02903-z},
446
+ url={https://www.nature.com/articles/s43247-025-02903-z}
447
+ }
448
+ ```
449
+