Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,97 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
language: en
|
| 4 |
+
pretty_name: "Koopman DA Benchmark Dataset"
|
| 5 |
+
size_categories:
|
| 6 |
+
- n<1K
|
| 7 |
+
tags:
|
| 8 |
+
- numpy
|
| 9 |
+
- hdf5
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Koopman Data Assimilation Dataset
|
| 13 |
+
|
| 14 |
+
Dataset accompanying the benchmark for Data Assimilation (DA) tasks with Koopman-inspired models.
|
| 15 |
+
|
| 16 |
+
Code repository: [github.com/Wenxuan52/KoopmanDABench](https://github.com/Wenxuan52/KoopmanDABench)
|
| 17 |
+
|
| 18 |
+
## What Is Hosted Where
|
| 19 |
+
|
| 20 |
+
The project is split across two locations:
|
| 21 |
+
|
| 22 |
+
- **GitHub repo** — source code, plus a few small files under `data/` (e.g. data-generation scripts, small reference files, configs).
|
| 23 |
+
- **This Hugging Face dataset** — the large pre-computed `.npy` / `.h5` files that are too big to track in Git.
|
| 24 |
+
|
| 25 |
+
On a new machine, cloning the GitHub repo and then downloading this dataset into the same `data/` folder gives you the complete setup. The two sets of files do not overlap.
|
| 26 |
+
|
| 27 |
+
## Final `data/` Layout
|
| 28 |
+
|
| 29 |
+
After both `git clone` and `hf download`, the `data/` folder should look like:
|
| 30 |
+
|
| 31 |
+
```
|
| 32 |
+
data/
|
| 33 |
+
├── kol_generate_data/ # from GitHub
|
| 34 |
+
├── ERA5_High/
|
| 35 |
+
│ ├── process_weatherbench.py # from GitHub
|
| 36 |
+
│ ├── test.py # from GitHub
|
| 37 |
+
│ └── raw_data/ # from Hugging Face
|
| 38 |
+
├── ERA5/ # from Hugging Face
|
| 39 |
+
├── dam/ # from Hugging Face
|
| 40 |
+
├── cylinder/ # from Hugging Face
|
| 41 |
+
└── kol/ # from Hugging Face
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## Quick Start on a New Machine
|
| 47 |
+
|
| 48 |
+
### 1. Clone the code from GitHub
|
| 49 |
+
|
| 50 |
+
```bash
|
| 51 |
+
git clone https://github.com/<your-username>/irp-test-framework.git
|
| 52 |
+
cd irp-test-framework
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
This already populates `data/` with the small files tracked in Git (e.g. generation scripts).
|
| 56 |
+
|
| 57 |
+
### 2. Set up the Python environment
|
| 58 |
+
|
| 59 |
+
```bash
|
| 60 |
+
conda create -n koopmanda python=3.10 -y
|
| 61 |
+
conda activate koopmanda
|
| 62 |
+
pip install -r requirements.txt # or: pip install -e .
|
| 63 |
+
pip install -U huggingface_hub
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
### 3. Pull the large data files from Hugging Face into `data/`
|
| 67 |
+
|
| 68 |
+
Authenticate once (only needed if this dataset is private; skip for public datasets):
|
| 69 |
+
|
| 70 |
+
```bash
|
| 71 |
+
hf auth login
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Then download into the existing `data/` folder — files from GitHub are not affected:
|
| 75 |
+
|
| 76 |
+
```bash
|
| 77 |
+
hf download <your-username>/<your-dataset-name> \
|
| 78 |
+
--repo-type dataset \
|
| 79 |
+
--local-dir ./data
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
Equivalent Python call:
|
| 83 |
+
|
| 84 |
+
```python
|
| 85 |
+
from huggingface_hub import snapshot_download
|
| 86 |
+
snapshot_download(
|
| 87 |
+
repo_id="<your-username>/<your-dataset-name>",
|
| 88 |
+
repo_type="dataset",
|
| 89 |
+
local_dir="./data",
|
| 90 |
+
)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
The project should now run exactly as it did on the original machine.
|
| 94 |
+
|
| 95 |
+
## License
|
| 96 |
+
|
| 97 |
+
Released under the MIT License.
|