Datasets:
Commit ·
8b20349
1
Parent(s): cfc03e8
Add dataset card
Browse filesCo-authored-by: Cursor <cursoragent@cursor.com>
README.md
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-image
|
| 5 |
+
tags:
|
| 6 |
+
- climate
|
| 7 |
+
- downscaling
|
| 8 |
+
- super-resolution
|
| 9 |
+
- weather
|
| 10 |
+
- meteorology
|
| 11 |
+
- deep-learning
|
| 12 |
+
language:
|
| 13 |
+
- en
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# Climate Downscaling Dataset (S2S)
|
| 19 |
+
|
| 20 |
+
A dataset for climate data spatial downscaling from low resolution (16×16) to high resolution (64×64).
|
| 21 |
+
|
| 22 |
+
## Dataset Description
|
| 23 |
+
|
| 24 |
+
This dataset contains climate variables for training deep learning models to perform statistical downscaling. The data is preprocessed and ready for use with PyTorch-based frameworks.
|
| 25 |
+
|
| 26 |
+
### Data Format
|
| 27 |
+
|
| 28 |
+
The dataset consists of PyTorch tensor files (`.pt`) with the following structure:
|
| 29 |
+
|
| 30 |
+
| Key | Shape | Description |
|
| 31 |
+
|-----|-------|-------------|
|
| 32 |
+
| `LR_input` | `[C, T, 16, 16]` | Low-resolution input (C=7 channels, T=time steps) |
|
| 33 |
+
| `HR_target` | `[C, T, 64, 64]` | High-resolution target |
|
| 34 |
+
| `HR_topo` | `[2, 64, 64]` | Topographic data (elevation and slope) |
|
| 35 |
+
|
| 36 |
+
### Files
|
| 37 |
+
|
| 38 |
+
| File | Size | Description |
|
| 39 |
+
|------|------|-------------|
|
| 40 |
+
| `dict_s2s_train.pt` | 8.6 GB | Training set |
|
| 41 |
+
| `dict_s2s_test.pt` | 1.8 GB | Test set |
|
| 42 |
+
| `dict_s2s_val.pt` | 873 MB | Validation set |
|
| 43 |
+
| `HR_topo.nc` | 58 KB | Topographic data (NetCDF format) |
|
| 44 |
+
|
| 45 |
+
### Input Channels
|
| 46 |
+
|
| 47 |
+
The 7 input channels in `LR_input` typically include:
|
| 48 |
+
- Temperature (t2m)
|
| 49 |
+
- Geopotential height
|
| 50 |
+
- U-wind component
|
| 51 |
+
- V-wind component
|
| 52 |
+
- Relative humidity
|
| 53 |
+
- Surface pressure
|
| 54 |
+
- Other meteorological variables
|
| 55 |
+
|
| 56 |
+
### Scale Factor
|
| 57 |
+
|
| 58 |
+
- **Input resolution**: 16×16
|
| 59 |
+
- **Output resolution**: 64×64
|
| 60 |
+
- **Scale factor**: 4x
|
| 61 |
+
|
| 62 |
+
## Usage
|
| 63 |
+
|
| 64 |
+
### Loading the Data
|
| 65 |
+
|
| 66 |
+
```python
|
| 67 |
+
import torch
|
| 68 |
+
|
| 69 |
+
# Load training data
|
| 70 |
+
train_data = torch.load('dict_s2s_train.pt')
|
| 71 |
+
|
| 72 |
+
lr_input = train_data['LR_input'] # [C, T, 16, 16]
|
| 73 |
+
hr_target = train_data['HR_target'] # [C, T, 64, 64]
|
| 74 |
+
hr_topo = train_data['HR_topo'] # [2, 64, 64]
|
| 75 |
+
|
| 76 |
+
# Transpose to [T, C, H, W] for batch processing
|
| 77 |
+
lr_input = lr_input.permute(1, 0, 2, 3)
|
| 78 |
+
hr_target = hr_target.permute(1, 0, 2, 3)
|
| 79 |
+
|
| 80 |
+
print(f"Number of samples: {lr_input.shape[0]}")
|
| 81 |
+
print(f"Input shape: {lr_input.shape}")
|
| 82 |
+
print(f"Target shape: {hr_target.shape}")
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
### With Hugging Face Datasets
|
| 86 |
+
|
| 87 |
+
```python
|
| 88 |
+
from huggingface_hub import hf_hub_download
|
| 89 |
+
|
| 90 |
+
# Download specific file
|
| 91 |
+
train_path = hf_hub_download(
|
| 92 |
+
repo_id="YOUR_USERNAME/climate-downscaling-s2s",
|
| 93 |
+
filename="dict_s2s_train.pt",
|
| 94 |
+
repo_type="dataset"
|
| 95 |
+
)
|
| 96 |
+
|
| 97 |
+
train_data = torch.load(train_path)
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
## Citation
|
| 101 |
+
|
| 102 |
+
If you use this dataset, please cite:
|
| 103 |
+
|
| 104 |
+
```bibtex
|
| 105 |
+
@dataset{climate_downscaling_s2s,
|
| 106 |
+
title={Climate Downscaling Dataset for Deep Learning},
|
| 107 |
+
year={2025},
|
| 108 |
+
url={https://huggingface.co/datasets/YOUR_USERNAME/climate-downscaling-s2s}
|
| 109 |
+
}
|
| 110 |
+
```
|
| 111 |
+
|
| 112 |
+
## License
|
| 113 |
+
|
| 114 |
+
This dataset is released under the MIT License.
|