File size: 6,462 Bytes
b540c17
18adcab
 
 
 
 
 
 
 
 
b540c17
18adcab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
---
library_name: pytorch
tags:
  - weather-forecasting
  - earth-system
  - ensemble-forecasting
  - temporal-downscaling
  - climate
  - zarr
  - netcdf
---

# Coupled Earth-System Forecast Sample and Temporal Downscaling Model

本仓库提供一个全球海陆气冰耦合预报样例,以及配套的时间降尺度模型权重。样例包含
2020-01-04 起报的初始场和 48 个集合成员、40 个预报时次的离线结果。

This repository provides a global atmosphere-land-ocean-sea-ice coupled forecast
sample and a temporal downscaling model checkpoint. The sample is initialized on
2020-01-04 and contains 48 ensemble members with 40 forecast steps.

## Repository Structure

```text
.
├── model/
│   └── 8000_G.pth
└── data/
    ├── inp_data/
    │   └── era5_oras_20200103_20200104.zarr/
    └── oup_data/
        └── 20200104/
            ├── 0.nc
            ├── 1.nc
            ├── ...
            └── 47.nc
```

`oup_data` follows the existing artifact name and means output data.

## Artifact Relationship

The files represent different stages of the forecasting workflow:

```text
Two-day normalized initial state
  -> FuXi coupled forecast model
  -> 48-member daily coupled forecasts
  -> temporal downscaling model
  -> 6-hourly coupled forecasts
```

- `inp_data` is a normalized, model-ready initial state for the FuXi coupled
  forecast model.
- `oup_data` contains the stored daily FuXi coupled forecast results.
- `model/8000_G.pth` is the downstream temporal downscaling checkpoint. It is
  not the FuXi coupled forecast checkpoint.


## Temporal Downscaling Model

`model/8000_G.pth` is a PyTorch `OrderedDict` state dictionary with 544 tensors.
It uses a SwinIR-based temporal downscaling architecture.

| Item | Value |
| --- | --- |
| Checkpoint size | 129,715,342 bytes |
| Input channels | 358 (`175 x 2 + 8`) |
| Output channels | 700 (`175 x 4`) |
| Earth-system variables | 175 packed variables |
| Output times | 00, 06, 12, and 18 UTC |
| Embedding dimension | 180 |
| Block depths | `[6, 6, 6, 6, 6, 6]` |
| Attention heads | `[6, 6, 6, 6, 6, 6]` |
| Window size | 8 |
| MLP ratio | 2 |
| Residual connection | `1conv` |

The model consumes two packed daily fields plus eight static/time features and
predicts four 6-hourly residual fields. Architecture code and preprocessing
logic are required before loading the state dictionary into a model instance.

## Input Data

`data/inp_data/era5_oras_20200103_20200104.zarr` contains a normalized
atmosphere-land-ocean-sea-ice initial-state sample.

| Item | Value |
| --- | --- |
| Dates | 2020-01-03 and 2020-01-04 |
| Array shape | `(2, 211, 721, 1440)` |
| Dimensions | `time`, `channel`, `lat`, `lon` |
| Data type | `float16` |
| Spatial grid | Global 0.25 degrees |
| Latitude | 90 to -90 degrees |
| Longitude | 0 to 359.75 degrees |
| Compression | Blosc LZ4, level 5 |
| Stored size | Approximately 479 MB |

The channels cover pressure-level geopotential, temperature, wind and humidity;
single-level atmospheric and land variables; ocean salinity, temperature and
currents at depth; and sea-ice/ocean surface variables such as sea-ice
thickness, sea-surface height, sea-ice concentration, and mixed-layer
temperature.

Values are normalized model inputs rather than physical-unit observations.
Channel order must be preserved.

## Forecast Output

`data/oup_data/20200104` contains one NetCDF file for each ensemble member.

| Item | Value |
| --- | --- |
| Initialization time | 2020-01-04 |
| Ensemble members | 48 (`0.nc` to `47.nc`) |
| Forecast steps | 40 daily steps |
| Shape per member | `(1, 40, 211, 721, 1440)` |
| Dimensions | `time`, `step`, `channel`, `lat`, `lon` |
| Data type | `float32` |
| Spatial grid | Global 0.25 degrees |
| Approximate size | 35.05 GB per member; 1.68 TB in total |

Because the complete output is large, download only the required ensemble
members whenever possible. Repositories hosting these files should use Hugging
Face Xet storage.

## Loading the Files

Install the basic readers:

```bash
pip install torch xarray zarr netcdf4 huggingface_hub
```

Load the input sample:

```python
import xarray as xr

initial_state = xr.open_zarr(
    "data/inp_data/era5_oras_20200103_20200104.zarr"
)
print(initial_state)
```

Load one forecast member:

```python
import xarray as xr

member = xr.open_dataset("data/oup_data/20200104/0.nc")
print(member)
```

Inspect the checkpoint:

```python
import torch

state_dict = torch.load("model/8000_G.pth", map_location="cpu")
print(f"Number of tensors: {len(state_dict)}")
```

## Download from Hugging Face

Replace `YOUR_ORG/YOUR_REPO` with the published repository ID.

Download the checkpoint and input example:

```python
from huggingface_hub import snapshot_download

snapshot_download(
    repo_id="YOUR_ORG/YOUR_REPO",
    allow_patterns=["model/*", "data/inp_data/*"],
    local_dir="coupled_forecast_sample",
)
```

Download one forecast member:

```python
from huggingface_hub import hf_hub_download

hf_hub_download(
    repo_id="YOUR_ORG/YOUR_REPO",
    filename="data/oup_data/20200104/0.nc",
    local_dir="coupled_forecast_sample",
)
```

If this is published as a Hugging Face dataset repository, add
`repo_type="dataset"` to the download calls.

## Limitations

- This release contains one initialization date and is an example rather than a
  climatologically representative benchmark.
- The stored arrays are normalized/model-ready values and cannot be converted
  reliably to physical units without the matching normalization metadata.
- The temporal downscaling checkpoint is a state dictionary only; it requires
  the matching model definition and packing/preprocessing code.
- The FuXi checkpoint, complete inference pipeline, normalization constants,
  and static fields are not included in the current artifact set.
- The daily ensemble outputs are intermediate FuXi results, not direct outputs
  of `8000_G.pth`.

## Citation

Please replace this placeholder with the project publication before release:

```bibtex
@misc{coupled_earth_system_forecast,
  title  = {Coupled Earth-System Forecast Sample and Temporal Downscaling Model},
  author = {Project Team},
  year   = {2026}
}
```

## License

No license is declared in this model/data card. A license covering the model
weights, derived data, and upstream dependencies must be selected and added
before public release.