Datasets:
License:
Upload folder using huggingface_hub
Browse files- .gitattributes +76 -33
- README.md +62 -0
- README_zh.md +63 -0
- data/1993.h5 +3 -0
- data/1994.h5 +3 -0
- data/1995.h5 +3 -0
- data/1996.h5 +3 -0
- data/1997.h5 +3 -0
- data/1998.h5 +3 -0
- data/1999.h5 +3 -0
- manifest.yaml +431 -0
- metadata/file_checksums.sha256 +7 -0
- metadata/schema.yaml +127 -0
- onescience_relations.yaml +16 -0
- onescience_run_manifest.yaml +431 -0
- scripts/validate_dataset.py +95 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,103 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
-
|
| 10 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
|
| 40 |
-
*.
|
| 41 |
-
*
|
| 42 |
-
*.
|
| 43 |
-
|
| 44 |
-
*.
|
| 45 |
-
*.
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 56 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 57 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
| 11 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 13 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 17 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 20 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 21 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.mat filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
|
| 27 |
+
*.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 32 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.db* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.ark* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 48 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.wma filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.m4a filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.m3u8 filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.amr filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.audio filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.avi filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.flv filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.mpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
*.asf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
*.mov filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
*.mpeg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
*.3gp filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
*.wmv filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
*.rmvb filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
*.rm filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
*.ts filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
*.mkv filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
*.flash filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
*.vob filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
*.ost filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
*.pst filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
*.doc filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
*.docx filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
*.txt filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
*.ppt filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
*.pptx filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
*.xls filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
*.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
*.vsd filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
*.vsdx filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
dataset_infos.json ignore
|
| 88 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
*.tsv filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
|
| 91 |
+
data/1993.h5 filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
|
| 93 |
+
data/1994.h5 filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
|
| 95 |
+
data/1995.h5 filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
|
| 97 |
+
data/1996.h5 filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
|
| 99 |
+
data/1997.h5 filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
|
| 101 |
+
data/1998.h5 filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
|
| 103 |
+
data/1999.h5 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
#User-Defined Tags
|
| 4 |
+
tags:
|
| 5 |
+
- CMEMS
|
| 6 |
+
- Marine forecast
|
| 7 |
+
- Reanalysis
|
| 8 |
+
- Physical Ocean
|
| 9 |
+
- Global Ocean
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
---
|
| 14 |
+
<p align="center">
|
| 15 |
+
<strong>
|
| 16 |
+
<span style="font-size: 30px;">CMEMS</span>
|
| 17 |
+
</strong>
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
CMEMS is an HDF5 gridded dataset for global ocean forecasting tasks. By integrating satellite and in situ observations with numerical ocean models, it provides real-time analyses, forecasts, and historical reconstructions for a variety of variables.
|
| 24 |
+
|
| 25 |
+
## Supported Tasks
|
| 26 |
+
|
| 27 |
+
This standardized data repository contains 7 annual files covering 1993-1999. Each file provides ocean variable fields, global means, and global standard deviations, and can be used for XiHe model training, validation, testing, inference input, and evaluation.
|
| 28 |
+
|
| 29 |
+
## Dataset Format and Structure
|
| 30 |
+
|
| 31 |
+
Each annual file is in HDF5 format and follows the path pattern `data/<year>.h5`. Each file contains:
|
| 32 |
+
|
| 33 |
+
| HDF5 Path | shape | dtype | Description |
|
| 34 |
+
|---|---|---|---|
|
| 35 |
+
| `fields` | `[3, 96, 2041, 4320]` | `float32` | 3 time samples, 96 variables, and a global grid |
|
| 36 |
+
| `global_means` | `[1, 96, 1, 1]` | `float32` | Global means aligned with the variable order |
|
| 37 |
+
| `global_stds` | `[1, 96, 1, 1]` | `float32` | Global standard deviations aligned with the variable order |
|
| 38 |
+
|
| 39 |
+
`fields.attrs["variables"]` contains the names of 96 variables, and `fields.attrs["time_step"]` is 24. The detailed schema is provided in `metadata/schema.yaml`.
|
| 40 |
+
|
| 41 |
+
## How to Use the Dataset
|
| 42 |
+
|
| 43 |
+
This dataset is compatible with the `OneScience-Sugon/XiHe` model.
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
Download the dataset:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
hf download --dataset OneScience-Sugon/CMEMS --local-dir ./CMEMS
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
## Official OneScience Information
|
| 54 |
+
|
| 55 |
+
| Platform | OneScience Main Repository | Skills Repository |
|
| 56 |
+
|---|---|---|
|
| 57 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 58 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 59 |
+
|
| 60 |
+
## Limitations and License
|
| 61 |
+
|
| 62 |
+
CMEMS follows an open data policy consistent with CC-BY-4.0 principles (official license agreement), and the dataset is licensed under CC-BY-4.0.
|
README_zh.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: CC-BY-4.0
|
| 3 |
+
#用户自定义标签
|
| 4 |
+
tags:
|
| 5 |
+
- CMEMS
|
| 6 |
+
- Marine forecast
|
| 7 |
+
- Reanalysis
|
| 8 |
+
- Physical Ocean
|
| 9 |
+
- Global Ocean
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
---
|
| 14 |
+
<p align="center">
|
| 15 |
+
<strong>
|
| 16 |
+
<span style="font-size: 30px;">CMEMS</span>
|
| 17 |
+
</strong>
|
| 18 |
+
</p>
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
## 数据集描述
|
| 22 |
+
|
| 23 |
+
CMEMS 是用于全球海洋预报任务的 HDF5 网格数据集。它通过整合卫星与现场观测数据并运行海洋数值模型,提供多种变量的实时分析、预报及历史重建数据。
|
| 24 |
+
|
| 25 |
+
## 数据集支持的任务
|
| 26 |
+
|
| 27 |
+
本标准化数据仓库包含 1993-1999 年 7 个年度文件,每个文件提供海洋变量场、全局均值和全局标准差,可用于 XiHe 模型训练、验证、测试、推理输入和评测。
|
| 28 |
+
|
| 29 |
+
## 数据集的格式和结构
|
| 30 |
+
|
| 31 |
+
每个年度文件为 HDF5,路径模式为 `data/<year>.h5` 文件内包含:
|
| 32 |
+
|
| 33 |
+
| HDF5 路径 | shape | dtype | 说明 |
|
| 34 |
+
|---|---|---|---|
|
| 35 |
+
| `fields` | `[3, 96, 2041, 4320]` | `float32` | 3 个时间样本、96 个变量、全球网格 |
|
| 36 |
+
| `global_means` | `[1, 96, 1, 1]` | `float32` | 与变量顺序对齐的全局均值 |
|
| 37 |
+
| `global_stds` | `[1, 96, 1, 1]` | `float32` | 与变量顺序对齐的全局标准差 |
|
| 38 |
+
|
| 39 |
+
`fields.attrs["variables"]` 包含 96 个变量名,`fields.attrs["time_step"]` 为 24。详细 schema 在 `metadata/schema.yaml`。
|
| 40 |
+
|
| 41 |
+
## 数据集使用方式
|
| 42 |
+
|
| 43 |
+
本数据集适配 `OneScience-Sugon/XiHe`模型。
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
下载数据集:
|
| 47 |
+
|
| 48 |
+
```bash
|
| 49 |
+
hf download --dataset OneScience-Sugon/CMEMS --local-dir ./CMEMS
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
## OneScience 官方信息
|
| 55 |
+
|
| 56 |
+
| 平台 | OneScience 主仓库 | Skills 仓库 |
|
| 57 |
+
|---|---|---|
|
| 58 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 59 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 60 |
+
|
| 61 |
+
## 限制与许可证
|
| 62 |
+
|
| 63 |
+
CMEMS 采用与 CC-BY-4.0 原则一致的开放数据政策(官方许可协议),许可证同CC-BY-4.0。
|
data/1993.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:57c694c0faf46cb5762751fffca473aeba783fb029288c2c1dea62c50a4b16e8
|
| 3 |
+
size 10157335296
|
data/1994.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d31d57c292518b799f2dafac6e57663ee5bdb2128c5f7286ae9b4afdc4a51859
|
| 3 |
+
size 10157335296
|
data/1995.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f86f6a02ebaa852b7ed88ceafc0dd4d4def09ec53269d1aba71031bd3ac0f7fe
|
| 3 |
+
size 10157335296
|
data/1996.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffe95335363b97d97744b310af22f1fc9b79a77446bf0c8981dd27e77e3b0098
|
| 3 |
+
size 10157335296
|
data/1997.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d9c427a4fe6e9ee621edff3a641c088e506b7c5ee0d9ab0928d98d2aacfb5fc
|
| 3 |
+
size 10157335296
|
data/1998.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c25a62f81c720663fddec49a081568e7a5a46e767204e67ab9945e7c121d6e43
|
| 3 |
+
size 10157335296
|
data/1999.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3a8040afb56ad2bee79d19fb8bd6b44d47411c8417ada95b063ef91cfbb08de
|
| 3 |
+
size 10157335296
|
manifest.yaml
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/CMEMS
|
| 5 |
+
name: CMEMS
|
| 6 |
+
domain: earth
|
| 7 |
+
domain_tags: [earth, ocean, cmems]
|
| 8 |
+
task: ocean_forecasting
|
| 9 |
+
task_tags: [ocean_forecast, train_data, eval_data]
|
| 10 |
+
modalities: [gridded_field]
|
| 11 |
+
input_formats: [hdf5]
|
| 12 |
+
output_formats: []
|
| 13 |
+
summary: CMEMS 是适配 OneScience/XiHe 的 1993-1999 年全球海洋预报 HDF5 数据集。
|
| 14 |
+
|
| 15 |
+
platform_resource:
|
| 16 |
+
primary:
|
| 17 |
+
platform: modelscope
|
| 18 |
+
repo_id: OneScience/CMEMS
|
| 19 |
+
repo_type: dataset
|
| 20 |
+
url: https://modelscope.cn/datasets/OneScience/CMEMS
|
| 21 |
+
revision: main
|
| 22 |
+
readme_path: README.md
|
| 23 |
+
manifest_path: manifest.yaml
|
| 24 |
+
mirrors: []
|
| 25 |
+
access:
|
| 26 |
+
visibility: public
|
| 27 |
+
license: null
|
| 28 |
+
|
| 29 |
+
website_integration:
|
| 30 |
+
enabled: true
|
| 31 |
+
click_target:
|
| 32 |
+
platform: modelscope
|
| 33 |
+
resource_url: https://modelscope.cn/datasets/OneScience/CMEMS
|
| 34 |
+
llm_handoff:
|
| 35 |
+
readme_required: true
|
| 36 |
+
manifest_required: true
|
| 37 |
+
download_readme_first: true
|
| 38 |
+
resolve_related_models: true
|
| 39 |
+
default_run_goal: dataset_validation
|
| 40 |
+
|
| 41 |
+
runtime:
|
| 42 |
+
enabled: true
|
| 43 |
+
onescience_domain: earth
|
| 44 |
+
min_onescience_version: null
|
| 45 |
+
supported_execution: [local, local_slurm, remote_slurm, scnet_mcp]
|
| 46 |
+
|
| 47 |
+
onescience:
|
| 48 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 49 |
+
official_links:
|
| 50 |
+
gitee:
|
| 51 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 52 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 53 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 54 |
+
github:
|
| 55 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 56 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 57 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 58 |
+
install:
|
| 59 |
+
required_by_default: false
|
| 60 |
+
command: bash install.sh earth
|
| 61 |
+
source_paths: []
|
| 62 |
+
compatibility:
|
| 63 |
+
examples_path: null
|
| 64 |
+
status: standard_first
|
| 65 |
+
|
| 66 |
+
environment:
|
| 67 |
+
install_mode: onescience_domain
|
| 68 |
+
python: "3.11"
|
| 69 |
+
hardware:
|
| 70 |
+
cpu: supported
|
| 71 |
+
gpu: optional
|
| 72 |
+
dcu: optional
|
| 73 |
+
extra_dependencies: [h5py, numpy, pyyaml]
|
| 74 |
+
|
| 75 |
+
runtime_package:
|
| 76 |
+
kind: dataset_package
|
| 77 |
+
package_root: .
|
| 78 |
+
standard_layout:
|
| 79 |
+
workdir: .
|
| 80 |
+
config_dir: metadata
|
| 81 |
+
checkpoint_dir: null
|
| 82 |
+
data_dir: data
|
| 83 |
+
output_dir: null
|
| 84 |
+
apply_policy:
|
| 85 |
+
mode: direct_use
|
| 86 |
+
target: session_workdir
|
| 87 |
+
overwrite: true
|
| 88 |
+
protect_installed_onescience: true
|
| 89 |
+
entry_files:
|
| 90 |
+
- metadata/schema.yaml
|
| 91 |
+
- metadata/file_checksums.sha256
|
| 92 |
+
- scripts/validate_dataset.py
|
| 93 |
+
entrypoints:
|
| 94 |
+
preflight: scripts/validate_dataset.py
|
| 95 |
+
inference: null
|
| 96 |
+
train: null
|
| 97 |
+
finetune: null
|
| 98 |
+
evaluate: null
|
| 99 |
+
visualize: null
|
| 100 |
+
deploy: null
|
| 101 |
+
|
| 102 |
+
files:
|
| 103 |
+
model_files: []
|
| 104 |
+
dataset_files:
|
| 105 |
+
- id: cmems_1993_h5
|
| 106 |
+
path: data/1993.h5
|
| 107 |
+
role: train_data
|
| 108 |
+
description_zh: 1993 年 CMEMS HDF5 年份文件,包含 fields、global_means 和 global_stds。
|
| 109 |
+
required: true
|
| 110 |
+
required_for: [preflight, train]
|
| 111 |
+
format: hdf5
|
| 112 |
+
source:
|
| 113 |
+
platform: modelscope
|
| 114 |
+
repo_id: OneScience/CMEMS
|
| 115 |
+
repo_type: dataset
|
| 116 |
+
path: data/1993.h5
|
| 117 |
+
revision: main
|
| 118 |
+
url: null
|
| 119 |
+
download_method: command_ref
|
| 120 |
+
command_ref: commands.download.download_dataset
|
| 121 |
+
mirrors: []
|
| 122 |
+
local_path: CMEMS/data/1993.h5
|
| 123 |
+
size: 10157335296
|
| 124 |
+
checksum: sha256:57c694c0faf46cb5762751fffca473aeba783fb029288c2c1dea62c50a4b16e8
|
| 125 |
+
large_file: true
|
| 126 |
+
- id: cmems_1994_h5
|
| 127 |
+
path: data/1994.h5
|
| 128 |
+
role: train_data
|
| 129 |
+
description_zh: 1994 年 CMEMS HDF5 年份文件。
|
| 130 |
+
required: true
|
| 131 |
+
required_for: [preflight, train]
|
| 132 |
+
format: hdf5
|
| 133 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1994.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 134 |
+
mirrors: []
|
| 135 |
+
local_path: CMEMS/data/1994.h5
|
| 136 |
+
size: 10157335296
|
| 137 |
+
checksum: sha256:d31d57c292518b799f2dafac6e57663ee5bdb2128c5f7286ae9b4afdc4a51859
|
| 138 |
+
large_file: true
|
| 139 |
+
- id: cmems_1995_h5
|
| 140 |
+
path: data/1995.h5
|
| 141 |
+
role: train_data
|
| 142 |
+
description_zh: 1995 年 CMEMS HDF5 年份文件。
|
| 143 |
+
required: true
|
| 144 |
+
required_for: [preflight, train]
|
| 145 |
+
format: hdf5
|
| 146 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1995.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 147 |
+
mirrors: []
|
| 148 |
+
local_path: CMEMS/data/1995.h5
|
| 149 |
+
size: 10157335296
|
| 150 |
+
checksum: sha256:f86f6a02ebaa852b7ed88ceafc0dd4d4def09ec53269d1aba71031bd3ac0f7fe
|
| 151 |
+
large_file: true
|
| 152 |
+
- id: cmems_1996_h5
|
| 153 |
+
path: data/1996.h5
|
| 154 |
+
role: train_data
|
| 155 |
+
description_zh: 1996 年 CMEMS HDF5 年份文件。
|
| 156 |
+
required: true
|
| 157 |
+
required_for: [preflight, train]
|
| 158 |
+
format: hdf5
|
| 159 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1996.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 160 |
+
mirrors: []
|
| 161 |
+
local_path: CMEMS/data/1996.h5
|
| 162 |
+
size: 10157335296
|
| 163 |
+
checksum: sha256:ffe95335363b97d97744b310af22f1fc9b79a77446bf0c8981dd27e77e3b0098
|
| 164 |
+
large_file: true
|
| 165 |
+
- id: cmems_1997_h5
|
| 166 |
+
path: data/1997.h5
|
| 167 |
+
role: train_data
|
| 168 |
+
description_zh: 1997 年 CMEMS HDF5 年份文件。
|
| 169 |
+
required: true
|
| 170 |
+
required_for: [preflight, train]
|
| 171 |
+
format: hdf5
|
| 172 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1997.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 173 |
+
mirrors: []
|
| 174 |
+
local_path: CMEMS/data/1997.h5
|
| 175 |
+
size: 10157335296
|
| 176 |
+
checksum: sha256:2d9c427a4fe6e9ee621edff3a641c088e506b7c5ee0d9ab0928d98d2aacfb5fc
|
| 177 |
+
large_file: true
|
| 178 |
+
- id: cmems_1998_h5
|
| 179 |
+
path: data/1998.h5
|
| 180 |
+
role: eval_data
|
| 181 |
+
description_zh: 1998 年 CMEMS HDF5 年份文件,XiHe 标准配置用于验证。
|
| 182 |
+
required: true
|
| 183 |
+
required_for: [preflight, train, evaluate]
|
| 184 |
+
format: hdf5
|
| 185 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1998.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 186 |
+
mirrors: []
|
| 187 |
+
local_path: CMEMS/data/1998.h5
|
| 188 |
+
size: 10157335296
|
| 189 |
+
checksum: sha256:c25a62f81c720663fddec49a081568e7a5a46e767204e67ab9945e7c121d6e43
|
| 190 |
+
large_file: true
|
| 191 |
+
- id: cmems_1999_h5
|
| 192 |
+
path: data/1999.h5
|
| 193 |
+
role: inference_input
|
| 194 |
+
description_zh: 1999 年 CMEMS HDF5 年份文件,XiHe 标准配置用于测试、推理和评测。
|
| 195 |
+
required: true
|
| 196 |
+
required_for: [preflight, inference, evaluate]
|
| 197 |
+
format: hdf5
|
| 198 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1999.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 199 |
+
mirrors: []
|
| 200 |
+
local_path: CMEMS/data/1999.h5
|
| 201 |
+
size: 10157335296
|
| 202 |
+
checksum: sha256:a3a8040afb56ad2bee79d19fb8bd6b44d47411c8417ada95b063ef91cfbb08de
|
| 203 |
+
large_file: true
|
| 204 |
+
- id: cmems_schema
|
| 205 |
+
path: metadata/schema.yaml
|
| 206 |
+
role: schema
|
| 207 |
+
description_zh: HDF5 结构、shape、dtype、attrs、变量列表和划分说明。
|
| 208 |
+
required: true
|
| 209 |
+
required_for: [preflight]
|
| 210 |
+
format: yaml
|
| 211 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: metadata/schema.yaml, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 212 |
+
mirrors: []
|
| 213 |
+
local_path: CMEMS/metadata/schema.yaml
|
| 214 |
+
size: null
|
| 215 |
+
checksum: null
|
| 216 |
+
large_file: false
|
| 217 |
+
- id: cmems_checksums
|
| 218 |
+
path: metadata/file_checksums.sha256
|
| 219 |
+
role: checksum
|
| 220 |
+
description_zh: 数据文件 SHA256 校验清单。
|
| 221 |
+
required: true
|
| 222 |
+
required_for: [preflight]
|
| 223 |
+
format: text
|
| 224 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: metadata/file_checksums.sha256, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 225 |
+
mirrors: []
|
| 226 |
+
local_path: CMEMS/metadata/file_checksums.sha256
|
| 227 |
+
size: null
|
| 228 |
+
checksum: null
|
| 229 |
+
large_file: false
|
| 230 |
+
config_files:
|
| 231 |
+
- id: validate_dataset_script
|
| 232 |
+
path: scripts/validate_dataset.py
|
| 233 |
+
role: preflight_script
|
| 234 |
+
description_zh: 数据集读取、schema、attrs、shape、dtype 和可选 SHA256 校验脚本。
|
| 235 |
+
required: true
|
| 236 |
+
required_for: [preflight]
|
| 237 |
+
format: python
|
| 238 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: scripts/validate_dataset.py, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 239 |
+
mirrors: []
|
| 240 |
+
local_path: CMEMS/scripts/validate_dataset.py
|
| 241 |
+
size: null
|
| 242 |
+
checksum: null
|
| 243 |
+
large_file: false
|
| 244 |
+
sample_files: []
|
| 245 |
+
|
| 246 |
+
dataset:
|
| 247 |
+
format: [hdf5]
|
| 248 |
+
sample_unit: one daily ocean state transition sample per time index
|
| 249 |
+
schema:
|
| 250 |
+
path: metadata/schema.yaml
|
| 251 |
+
checksums:
|
| 252 |
+
path: metadata/file_checksums.sha256
|
| 253 |
+
algorithm: sha256
|
| 254 |
+
splits:
|
| 255 |
+
train: [1993, 1994, 1995, 1996, 1997]
|
| 256 |
+
validation: [1998]
|
| 257 |
+
test: [1999]
|
| 258 |
+
structure:
|
| 259 |
+
hdf5_datasets: [fields, global_means, global_stds]
|
| 260 |
+
fields_shape: [3, 96, 2041, 4320]
|
| 261 |
+
stats_shape: [1, 96, 1, 1]
|
| 262 |
+
dtype: float32
|
| 263 |
+
time_step_hours: 24
|
| 264 |
+
|
| 265 |
+
relations:
|
| 266 |
+
required_datasets: []
|
| 267 |
+
optional_datasets: []
|
| 268 |
+
compatible_models:
|
| 269 |
+
- id: OneScience/XiHe
|
| 270 |
+
role: train_data
|
| 271 |
+
required_for: [preflight, train, inference, evaluate, visualize]
|
| 272 |
+
resource_ref:
|
| 273 |
+
platform: modelscope
|
| 274 |
+
repo_id: OneScience/XiHe
|
| 275 |
+
repo_type: model
|
| 276 |
+
url: https://modelscope.cn/models/OneScience/XiHe
|
| 277 |
+
revision: main
|
| 278 |
+
readme_path: README.md
|
| 279 |
+
manifest_path: manifest.yaml
|
| 280 |
+
expected_local_path: XiHe/data/data
|
| 281 |
+
adapter: XiHe/scripts/prepare_runtime_data.py
|
| 282 |
+
|
| 283 |
+
run_matrix:
|
| 284 |
+
scenarios:
|
| 285 |
+
- name: dataset_validation
|
| 286 |
+
capability: preflight
|
| 287 |
+
default: true
|
| 288 |
+
description_zh: 验证 CMEMS 数据集目录结构、HDF5 schema、shape、dtype、attrs 和统计量。
|
| 289 |
+
required_datasets:
|
| 290 |
+
- id: OneScience/CMEMS
|
| 291 |
+
role: self
|
| 292 |
+
local_path: .
|
| 293 |
+
required_model_files: []
|
| 294 |
+
required_data_files: [data/1993.h5, data/1994.h5, data/1995.h5, data/1996.h5, data/1997.h5, data/1998.h5, data/1999.h5]
|
| 295 |
+
preconditions:
|
| 296 |
+
- cwd 为下载后的 CMEMS 数据集仓库根目录。
|
| 297 |
+
command_refs:
|
| 298 |
+
- commands.preflight.validate_structure
|
| 299 |
+
outputs: []
|
| 300 |
+
- name: dataset_checksum_validation
|
| 301 |
+
capability: preflight
|
| 302 |
+
description_zh: 在结构验证基础上读取全部 7 个大文件并校验 SHA256,耗时较长。
|
| 303 |
+
required_datasets:
|
| 304 |
+
- id: OneScience/CMEMS
|
| 305 |
+
role: self
|
| 306 |
+
local_path: .
|
| 307 |
+
required_model_files: []
|
| 308 |
+
required_data_files: [data/*.h5, metadata/file_checksums.sha256]
|
| 309 |
+
preconditions:
|
| 310 |
+
- cwd 为下载后的 CMEMS 数据集仓库根目录。
|
| 311 |
+
command_refs:
|
| 312 |
+
- commands.preflight.validate_with_checksums
|
| 313 |
+
outputs: []
|
| 314 |
+
- name: prepare_for_xihe
|
| 315 |
+
capability: prepare
|
| 316 |
+
description_zh: 与 OneScience/XiHe 模型配合时,由模型包脚本将本数据集整理到 XiHe/data/data。
|
| 317 |
+
required_datasets:
|
| 318 |
+
- id: OneScience/CMEMS
|
| 319 |
+
role: train_data
|
| 320 |
+
local_path: CMEMS
|
| 321 |
+
required_model_files: [XiHe/scripts/prepare_runtime_data.py, XiHe/conf/config.yaml]
|
| 322 |
+
required_data_files: [CMEMS/data/*.h5]
|
| 323 |
+
preconditions:
|
| 324 |
+
- OneScience/XiHe 下载到 ./XiHe。
|
| 325 |
+
- OneScience/CMEMS 下载到 ./CMEMS。
|
| 326 |
+
command_refs:
|
| 327 |
+
- commands.prepare.prepare_for_xihe
|
| 328 |
+
outputs:
|
| 329 |
+
- XiHe/data/data/*.h5
|
| 330 |
+
- XiHe/data/stats/global_means.npy
|
| 331 |
+
- XiHe/data/land_mask.npy
|
| 332 |
+
|
| 333 |
+
capabilities:
|
| 334 |
+
inference: false
|
| 335 |
+
train: false
|
| 336 |
+
finetune: false
|
| 337 |
+
evaluate: false
|
| 338 |
+
visualize: false
|
| 339 |
+
deploy: false
|
| 340 |
+
|
| 341 |
+
commands:
|
| 342 |
+
download:
|
| 343 |
+
- name: download_dataset
|
| 344 |
+
description: 下载 CMEMS 数据集标准仓库。
|
| 345 |
+
target: dataset
|
| 346 |
+
repo_id: OneScience/CMEMS
|
| 347 |
+
source: .
|
| 348 |
+
local_path: ./CMEMS
|
| 349 |
+
required: true
|
| 350 |
+
required_for: [preflight, train, inference, evaluate]
|
| 351 |
+
command: modelscope download --dataset OneScience/CMEMS --local_dir ./CMEMS
|
| 352 |
+
- name: download_compatible_model
|
| 353 |
+
description: 下载适配模型 XiHe。
|
| 354 |
+
target: model
|
| 355 |
+
repo_id: OneScience/XiHe
|
| 356 |
+
source: .
|
| 357 |
+
local_path: ./XiHe
|
| 358 |
+
required: false
|
| 359 |
+
required_for: [train, inference, evaluate]
|
| 360 |
+
command: modelscope download --model OneScience/XiHe --local_dir ./XiHe
|
| 361 |
+
prepare:
|
| 362 |
+
- name: prepare_for_xihe
|
| 363 |
+
description: 调用 XiHe 模型包脚本,把 CMEMS 数据组织成 XiHe 运行布局。
|
| 364 |
+
cwd: ./XiHe
|
| 365 |
+
command: python scripts/prepare_runtime_data.py --dataset-root ../CMEMS --runtime-data-dir ./data
|
| 366 |
+
required_files: [../CMEMS/data/1993.h5, scripts/prepare_runtime_data.py]
|
| 367 |
+
required_env: [python, h5py, numpy]
|
| 368 |
+
expected_outputs:
|
| 369 |
+
- path: data/data/1993.h5
|
| 370 |
+
type: file
|
| 371 |
+
success_criteria: [exit_code == 0, output_path_exists]
|
| 372 |
+
preflight:
|
| 373 |
+
- name: validate_structure
|
| 374 |
+
description: 快速读取每个 HDF5 文件的结构、变量、shape、dtype 和统计量。
|
| 375 |
+
cwd: .
|
| 376 |
+
command: python scripts/validate_dataset.py --dataset-root .
|
| 377 |
+
required_files: [metadata/schema.yaml, metadata/file_checksums.sha256, data/1993.h5, data/1999.h5]
|
| 378 |
+
required_env: [python, h5py, numpy, pyyaml]
|
| 379 |
+
expected_outputs: []
|
| 380 |
+
success_criteria: [exit_code == 0]
|
| 381 |
+
- name: validate_with_checksums
|
| 382 |
+
description: 完整读取所有 HDF5 文件并校验 SHA256。
|
| 383 |
+
cwd: .
|
| 384 |
+
command: python scripts/validate_dataset.py --dataset-root . --verify-checksums
|
| 385 |
+
required_files: [metadata/file_checksums.sha256, data/1993.h5, data/1999.h5]
|
| 386 |
+
required_env: [python, h5py, numpy, pyyaml]
|
| 387 |
+
expected_outputs: []
|
| 388 |
+
success_criteria: [exit_code == 0]
|
| 389 |
+
inference: []
|
| 390 |
+
train: []
|
| 391 |
+
finetune: []
|
| 392 |
+
evaluate: []
|
| 393 |
+
visualize: []
|
| 394 |
+
deploy: []
|
| 395 |
+
|
| 396 |
+
expected_outputs:
|
| 397 |
+
- path: stdout
|
| 398 |
+
type: text
|
| 399 |
+
produced_by: commands.preflight.validate_structure
|
| 400 |
+
contains: CMEMS dataset validation passed.
|
| 401 |
+
- path: XiHe/data/stats/global_means.npy
|
| 402 |
+
type: file
|
| 403 |
+
produced_by: commands.prepare.prepare_for_xihe
|
| 404 |
+
|
| 405 |
+
diagnostics:
|
| 406 |
+
- name: missing_hdf5
|
| 407 |
+
match: "missing file"
|
| 408 |
+
explanation_zh: 数据集未完整下载或当前工作目录不是 CMEMS 仓库根目录。
|
| 409 |
+
fix_zh: 执行 modelscope download --dataset OneScience/CMEMS --local_dir ./CMEMS,并在 ./CMEMS 中运行验证命令。
|
| 410 |
+
- name: schema_mismatch
|
| 411 |
+
match: "variables attr does not match schema"
|
| 412 |
+
explanation_zh: HDF5 文件变量顺序或变量名与 schema.yaml 不一致。
|
| 413 |
+
fix_zh: 重新校验上传文件是否来自同��批 CMEMS 数据,必要时重新生成 schema 和 checksum。
|
| 414 |
+
- name: checksum_mismatch
|
| 415 |
+
match: "sha256 mismatch"
|
| 416 |
+
explanation_zh: 数据文件内容与上传前校验清单不一致。
|
| 417 |
+
fix_zh: 重新下载或重新上传对应年份文件。
|
| 418 |
+
|
| 419 |
+
domain_extension:
|
| 420 |
+
earth:
|
| 421 |
+
subdomain: ocean
|
| 422 |
+
source_family: CMEMS
|
| 423 |
+
grid:
|
| 424 |
+
lat_size: 2041
|
| 425 |
+
lon_size: 4320
|
| 426 |
+
spatial_resolution: [0.0833333333, 0.0833333333]
|
| 427 |
+
time:
|
| 428 |
+
years: [1993, 1994, 1995, 1996, 1997, 1998, 1999]
|
| 429 |
+
time_step_hours: 24
|
| 430 |
+
samples_per_year_file: 3
|
| 431 |
+
variables_count: 96
|
metadata/file_checksums.sha256
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
57c694c0faf46cb5762751fffca473aeba783fb029288c2c1dea62c50a4b16e8 data/1993.h5
|
| 2 |
+
d31d57c292518b799f2dafac6e57663ee5bdb2128c5f7286ae9b4afdc4a51859 data/1994.h5
|
| 3 |
+
f86f6a02ebaa852b7ed88ceafc0dd4d4def09ec53269d1aba71031bd3ac0f7fe data/1995.h5
|
| 4 |
+
ffe95335363b97d97744b310af22f1fc9b79a77446bf0c8981dd27e77e3b0098 data/1996.h5
|
| 5 |
+
2d9c427a4fe6e9ee621edff3a641c088e506b7c5ee0d9ab0928d98d2aacfb5fc data/1997.h5
|
| 6 |
+
c25a62f81c720663fddec49a081568e7a5a46e767204e67ab9945e7c121d6e43 data/1998.h5
|
| 7 |
+
a3a8040afb56ad2bee79d19fb8bd6b44d47411c8417ada95b063ef91cfbb08de data/1999.h5
|
metadata/schema.yaml
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset: CMEMS
|
| 2 |
+
resource_id: OneScience/CMEMS
|
| 3 |
+
format: hdf5
|
| 4 |
+
file_pattern: data/{year}.h5
|
| 5 |
+
years:
|
| 6 |
+
train: [1993, 1994, 1995, 1996, 1997]
|
| 7 |
+
validation: [1998]
|
| 8 |
+
test: [1999]
|
| 9 |
+
sample_unit: one daily ocean state transition sample per time index
|
| 10 |
+
hdf5:
|
| 11 |
+
required_datasets:
|
| 12 |
+
fields:
|
| 13 |
+
shape: [3, 96, 2041, 4320]
|
| 14 |
+
dtype: float32
|
| 15 |
+
attrs:
|
| 16 |
+
time_step: 24
|
| 17 |
+
variables_count: 96
|
| 18 |
+
global_means:
|
| 19 |
+
shape: [1, 96, 1, 1]
|
| 20 |
+
dtype: float32
|
| 21 |
+
attrs:
|
| 22 |
+
note: "global stats aligned with fields.attrs['variables']"
|
| 23 |
+
global_stds:
|
| 24 |
+
shape: [1, 96, 1, 1]
|
| 25 |
+
dtype: float32
|
| 26 |
+
attrs:
|
| 27 |
+
note: "global stats aligned with fields.attrs['variables']"
|
| 28 |
+
variables:
|
| 29 |
+
- sea_surface_temperature
|
| 30 |
+
- sea_surface_height_above_geoid
|
| 31 |
+
- 10m_u_component_of_wind
|
| 32 |
+
- 10m_v_component_of_wind
|
| 33 |
+
- eastward_sea_water_velocity_1
|
| 34 |
+
- eastward_sea_water_velocity_2
|
| 35 |
+
- eastward_sea_water_velocity_3
|
| 36 |
+
- eastward_sea_water_velocity_4
|
| 37 |
+
- eastward_sea_water_velocity_5
|
| 38 |
+
- eastward_sea_water_velocity_6
|
| 39 |
+
- eastward_sea_water_velocity_7
|
| 40 |
+
- eastward_sea_water_velocity_8
|
| 41 |
+
- eastward_sea_water_velocity_9
|
| 42 |
+
- eastward_sea_water_velocity_10
|
| 43 |
+
- eastward_sea_water_velocity_11
|
| 44 |
+
- eastward_sea_water_velocity_12
|
| 45 |
+
- eastward_sea_water_velocity_13
|
| 46 |
+
- eastward_sea_water_velocity_14
|
| 47 |
+
- eastward_sea_water_velocity_15
|
| 48 |
+
- eastward_sea_water_velocity_16
|
| 49 |
+
- eastward_sea_water_velocity_17
|
| 50 |
+
- eastward_sea_water_velocity_18
|
| 51 |
+
- eastward_sea_water_velocity_19
|
| 52 |
+
- eastward_sea_water_velocity_20
|
| 53 |
+
- eastward_sea_water_velocity_21
|
| 54 |
+
- eastward_sea_water_velocity_22
|
| 55 |
+
- eastward_sea_water_velocity_23
|
| 56 |
+
- northward_sea_water_velocity_1
|
| 57 |
+
- northward_sea_water_velocity_2
|
| 58 |
+
- northward_sea_water_velocity_3
|
| 59 |
+
- northward_sea_water_velocity_4
|
| 60 |
+
- northward_sea_water_velocity_5
|
| 61 |
+
- northward_sea_water_velocity_6
|
| 62 |
+
- northward_sea_water_velocity_7
|
| 63 |
+
- northward_sea_water_velocity_8
|
| 64 |
+
- northward_sea_water_velocity_9
|
| 65 |
+
- northward_sea_water_velocity_10
|
| 66 |
+
- northward_sea_water_velocity_11
|
| 67 |
+
- northward_sea_water_velocity_12
|
| 68 |
+
- northward_sea_water_velocity_13
|
| 69 |
+
- northward_sea_water_velocity_14
|
| 70 |
+
- northward_sea_water_velocity_15
|
| 71 |
+
- northward_sea_water_velocity_16
|
| 72 |
+
- northward_sea_water_velocity_17
|
| 73 |
+
- northward_sea_water_velocity_18
|
| 74 |
+
- northward_sea_water_velocity_19
|
| 75 |
+
- northward_sea_water_velocity_20
|
| 76 |
+
- northward_sea_water_velocity_21
|
| 77 |
+
- northward_sea_water_velocity_22
|
| 78 |
+
- northward_sea_water_velocity_23
|
| 79 |
+
- sea_water_salinity_1
|
| 80 |
+
- sea_water_salinity_2
|
| 81 |
+
- sea_water_salinity_3
|
| 82 |
+
- sea_water_salinity_4
|
| 83 |
+
- sea_water_salinity_5
|
| 84 |
+
- sea_water_salinity_6
|
| 85 |
+
- sea_water_salinity_7
|
| 86 |
+
- sea_water_salinity_8
|
| 87 |
+
- sea_water_salinity_9
|
| 88 |
+
- sea_water_salinity_10
|
| 89 |
+
- sea_water_salinity_11
|
| 90 |
+
- sea_water_salinity_12
|
| 91 |
+
- sea_water_salinity_13
|
| 92 |
+
- sea_water_salinity_14
|
| 93 |
+
- sea_water_salinity_15
|
| 94 |
+
- sea_water_salinity_16
|
| 95 |
+
- sea_water_salinity_17
|
| 96 |
+
- sea_water_salinity_18
|
| 97 |
+
- sea_water_salinity_19
|
| 98 |
+
- sea_water_salinity_20
|
| 99 |
+
- sea_water_salinity_21
|
| 100 |
+
- sea_water_salinity_22
|
| 101 |
+
- sea_water_salinity_23
|
| 102 |
+
- sea_water_potential_temperature_1
|
| 103 |
+
- sea_water_potential_temperature_2
|
| 104 |
+
- sea_water_potential_temperature_3
|
| 105 |
+
- sea_water_potential_temperature_4
|
| 106 |
+
- sea_water_potential_temperature_5
|
| 107 |
+
- sea_water_potential_temperature_6
|
| 108 |
+
- sea_water_potential_temperature_7
|
| 109 |
+
- sea_water_potential_temperature_8
|
| 110 |
+
- sea_water_potential_temperature_9
|
| 111 |
+
- sea_water_potential_temperature_10
|
| 112 |
+
- sea_water_potential_temperature_11
|
| 113 |
+
- sea_water_potential_temperature_12
|
| 114 |
+
- sea_water_potential_temperature_13
|
| 115 |
+
- sea_water_potential_temperature_14
|
| 116 |
+
- sea_water_potential_temperature_15
|
| 117 |
+
- sea_water_potential_temperature_16
|
| 118 |
+
- sea_water_potential_temperature_17
|
| 119 |
+
- sea_water_potential_temperature_18
|
| 120 |
+
- sea_water_potential_temperature_19
|
| 121 |
+
- sea_water_potential_temperature_20
|
| 122 |
+
- sea_water_potential_temperature_21
|
| 123 |
+
- sea_water_potential_temperature_22
|
| 124 |
+
- sea_water_potential_temperature_23
|
| 125 |
+
notes:
|
| 126 |
+
- 每个年份文件包含 3 个 24 小时间隔样本。
|
| 127 |
+
- global_means 和 global_stds 内置在每个 HDF5 文件中,XiHe 运行前可由模型包脚本提取为 data/stats/*.npy。
|
onescience_relations.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
required_datasets: []
|
| 2 |
+
optional_datasets: []
|
| 3 |
+
compatible_models:
|
| 4 |
+
- id: OneScience/XiHe
|
| 5 |
+
role: train_data
|
| 6 |
+
required_for: [preflight, train, inference, evaluate, visualize]
|
| 7 |
+
resource_ref:
|
| 8 |
+
platform: modelscope
|
| 9 |
+
repo_id: OneScience/XiHe
|
| 10 |
+
repo_type: model
|
| 11 |
+
url: https://modelscope.cn/models/OneScience/XiHe
|
| 12 |
+
revision: main
|
| 13 |
+
readme_path: README.md
|
| 14 |
+
manifest_path: manifest.yaml
|
| 15 |
+
expected_local_path: XiHe/data/data
|
| 16 |
+
adapter: XiHe/scripts/prepare_runtime_data.py
|
onescience_run_manifest.yaml
ADDED
|
@@ -0,0 +1,431 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/CMEMS
|
| 5 |
+
name: CMEMS
|
| 6 |
+
domain: earth
|
| 7 |
+
domain_tags: [earth, ocean, cmems]
|
| 8 |
+
task: ocean_forecasting
|
| 9 |
+
task_tags: [ocean_forecast, train_data, eval_data]
|
| 10 |
+
modalities: [gridded_field]
|
| 11 |
+
input_formats: [hdf5]
|
| 12 |
+
output_formats: []
|
| 13 |
+
summary: CMEMS 是适配 OneScience/XiHe 的 1993-1999 年全球海洋预报 HDF5 数据集。
|
| 14 |
+
|
| 15 |
+
platform_resource:
|
| 16 |
+
primary:
|
| 17 |
+
platform: modelscope
|
| 18 |
+
repo_id: OneScience/CMEMS
|
| 19 |
+
repo_type: dataset
|
| 20 |
+
url: https://modelscope.cn/datasets/OneScience/CMEMS
|
| 21 |
+
revision: main
|
| 22 |
+
readme_path: README.md
|
| 23 |
+
manifest_path: manifest.yaml
|
| 24 |
+
mirrors: []
|
| 25 |
+
access:
|
| 26 |
+
visibility: public
|
| 27 |
+
license: null
|
| 28 |
+
|
| 29 |
+
website_integration:
|
| 30 |
+
enabled: true
|
| 31 |
+
click_target:
|
| 32 |
+
platform: modelscope
|
| 33 |
+
resource_url: https://modelscope.cn/datasets/OneScience/CMEMS
|
| 34 |
+
llm_handoff:
|
| 35 |
+
readme_required: true
|
| 36 |
+
manifest_required: true
|
| 37 |
+
download_readme_first: true
|
| 38 |
+
resolve_related_models: true
|
| 39 |
+
default_run_goal: dataset_validation
|
| 40 |
+
|
| 41 |
+
runtime:
|
| 42 |
+
enabled: true
|
| 43 |
+
onescience_domain: earth
|
| 44 |
+
min_onescience_version: null
|
| 45 |
+
supported_execution: [local, local_slurm, remote_slurm, scnet_mcp]
|
| 46 |
+
|
| 47 |
+
onescience:
|
| 48 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 49 |
+
official_links:
|
| 50 |
+
gitee:
|
| 51 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 52 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 53 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 54 |
+
github:
|
| 55 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 56 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 57 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 58 |
+
install:
|
| 59 |
+
required_by_default: false
|
| 60 |
+
command: bash install.sh earth
|
| 61 |
+
source_paths: []
|
| 62 |
+
compatibility:
|
| 63 |
+
examples_path: null
|
| 64 |
+
status: standard_first
|
| 65 |
+
|
| 66 |
+
environment:
|
| 67 |
+
install_mode: onescience_domain
|
| 68 |
+
python: "3.11"
|
| 69 |
+
hardware:
|
| 70 |
+
cpu: supported
|
| 71 |
+
gpu: optional
|
| 72 |
+
dcu: optional
|
| 73 |
+
extra_dependencies: [h5py, numpy, pyyaml]
|
| 74 |
+
|
| 75 |
+
runtime_package:
|
| 76 |
+
kind: dataset_package
|
| 77 |
+
package_root: .
|
| 78 |
+
standard_layout:
|
| 79 |
+
workdir: .
|
| 80 |
+
config_dir: metadata
|
| 81 |
+
checkpoint_dir: null
|
| 82 |
+
data_dir: data
|
| 83 |
+
output_dir: null
|
| 84 |
+
apply_policy:
|
| 85 |
+
mode: direct_use
|
| 86 |
+
target: session_workdir
|
| 87 |
+
overwrite: true
|
| 88 |
+
protect_installed_onescience: true
|
| 89 |
+
entry_files:
|
| 90 |
+
- metadata/schema.yaml
|
| 91 |
+
- metadata/file_checksums.sha256
|
| 92 |
+
- scripts/validate_dataset.py
|
| 93 |
+
entrypoints:
|
| 94 |
+
preflight: scripts/validate_dataset.py
|
| 95 |
+
inference: null
|
| 96 |
+
train: null
|
| 97 |
+
finetune: null
|
| 98 |
+
evaluate: null
|
| 99 |
+
visualize: null
|
| 100 |
+
deploy: null
|
| 101 |
+
|
| 102 |
+
files:
|
| 103 |
+
model_files: []
|
| 104 |
+
dataset_files:
|
| 105 |
+
- id: cmems_1993_h5
|
| 106 |
+
path: data/1993.h5
|
| 107 |
+
role: train_data
|
| 108 |
+
description_zh: 1993 年 CMEMS HDF5 年份文件,包含 fields、global_means 和 global_stds。
|
| 109 |
+
required: true
|
| 110 |
+
required_for: [preflight, train]
|
| 111 |
+
format: hdf5
|
| 112 |
+
source:
|
| 113 |
+
platform: modelscope
|
| 114 |
+
repo_id: OneScience/CMEMS
|
| 115 |
+
repo_type: dataset
|
| 116 |
+
path: data/1993.h5
|
| 117 |
+
revision: main
|
| 118 |
+
url: null
|
| 119 |
+
download_method: command_ref
|
| 120 |
+
command_ref: commands.download.download_dataset
|
| 121 |
+
mirrors: []
|
| 122 |
+
local_path: CMEMS/data/1993.h5
|
| 123 |
+
size: 10157335296
|
| 124 |
+
checksum: sha256:57c694c0faf46cb5762751fffca473aeba783fb029288c2c1dea62c50a4b16e8
|
| 125 |
+
large_file: true
|
| 126 |
+
- id: cmems_1994_h5
|
| 127 |
+
path: data/1994.h5
|
| 128 |
+
role: train_data
|
| 129 |
+
description_zh: 1994 年 CMEMS HDF5 年份文件。
|
| 130 |
+
required: true
|
| 131 |
+
required_for: [preflight, train]
|
| 132 |
+
format: hdf5
|
| 133 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1994.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 134 |
+
mirrors: []
|
| 135 |
+
local_path: CMEMS/data/1994.h5
|
| 136 |
+
size: 10157335296
|
| 137 |
+
checksum: sha256:d31d57c292518b799f2dafac6e57663ee5bdb2128c5f7286ae9b4afdc4a51859
|
| 138 |
+
large_file: true
|
| 139 |
+
- id: cmems_1995_h5
|
| 140 |
+
path: data/1995.h5
|
| 141 |
+
role: train_data
|
| 142 |
+
description_zh: 1995 年 CMEMS HDF5 年份文件。
|
| 143 |
+
required: true
|
| 144 |
+
required_for: [preflight, train]
|
| 145 |
+
format: hdf5
|
| 146 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1995.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 147 |
+
mirrors: []
|
| 148 |
+
local_path: CMEMS/data/1995.h5
|
| 149 |
+
size: 10157335296
|
| 150 |
+
checksum: sha256:f86f6a02ebaa852b7ed88ceafc0dd4d4def09ec53269d1aba71031bd3ac0f7fe
|
| 151 |
+
large_file: true
|
| 152 |
+
- id: cmems_1996_h5
|
| 153 |
+
path: data/1996.h5
|
| 154 |
+
role: train_data
|
| 155 |
+
description_zh: 1996 年 CMEMS HDF5 年份文件。
|
| 156 |
+
required: true
|
| 157 |
+
required_for: [preflight, train]
|
| 158 |
+
format: hdf5
|
| 159 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1996.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 160 |
+
mirrors: []
|
| 161 |
+
local_path: CMEMS/data/1996.h5
|
| 162 |
+
size: 10157335296
|
| 163 |
+
checksum: sha256:ffe95335363b97d97744b310af22f1fc9b79a77446bf0c8981dd27e77e3b0098
|
| 164 |
+
large_file: true
|
| 165 |
+
- id: cmems_1997_h5
|
| 166 |
+
path: data/1997.h5
|
| 167 |
+
role: train_data
|
| 168 |
+
description_zh: 1997 年 CMEMS HDF5 年份文件。
|
| 169 |
+
required: true
|
| 170 |
+
required_for: [preflight, train]
|
| 171 |
+
format: hdf5
|
| 172 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1997.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 173 |
+
mirrors: []
|
| 174 |
+
local_path: CMEMS/data/1997.h5
|
| 175 |
+
size: 10157335296
|
| 176 |
+
checksum: sha256:2d9c427a4fe6e9ee621edff3a641c088e506b7c5ee0d9ab0928d98d2aacfb5fc
|
| 177 |
+
large_file: true
|
| 178 |
+
- id: cmems_1998_h5
|
| 179 |
+
path: data/1998.h5
|
| 180 |
+
role: eval_data
|
| 181 |
+
description_zh: 1998 年 CMEMS HDF5 年份文件,XiHe 标准配置用于验证。
|
| 182 |
+
required: true
|
| 183 |
+
required_for: [preflight, train, evaluate]
|
| 184 |
+
format: hdf5
|
| 185 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1998.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 186 |
+
mirrors: []
|
| 187 |
+
local_path: CMEMS/data/1998.h5
|
| 188 |
+
size: 10157335296
|
| 189 |
+
checksum: sha256:c25a62f81c720663fddec49a081568e7a5a46e767204e67ab9945e7c121d6e43
|
| 190 |
+
large_file: true
|
| 191 |
+
- id: cmems_1999_h5
|
| 192 |
+
path: data/1999.h5
|
| 193 |
+
role: inference_input
|
| 194 |
+
description_zh: 1999 年 CMEMS HDF5 年份文件,XiHe 标准配置用于测试、推理和评测。
|
| 195 |
+
required: true
|
| 196 |
+
required_for: [preflight, inference, evaluate]
|
| 197 |
+
format: hdf5
|
| 198 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: data/1999.h5, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 199 |
+
mirrors: []
|
| 200 |
+
local_path: CMEMS/data/1999.h5
|
| 201 |
+
size: 10157335296
|
| 202 |
+
checksum: sha256:a3a8040afb56ad2bee79d19fb8bd6b44d47411c8417ada95b063ef91cfbb08de
|
| 203 |
+
large_file: true
|
| 204 |
+
- id: cmems_schema
|
| 205 |
+
path: metadata/schema.yaml
|
| 206 |
+
role: schema
|
| 207 |
+
description_zh: HDF5 结构、shape、dtype、attrs、变量列表和划分说明。
|
| 208 |
+
required: true
|
| 209 |
+
required_for: [preflight]
|
| 210 |
+
format: yaml
|
| 211 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: metadata/schema.yaml, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 212 |
+
mirrors: []
|
| 213 |
+
local_path: CMEMS/metadata/schema.yaml
|
| 214 |
+
size: null
|
| 215 |
+
checksum: null
|
| 216 |
+
large_file: false
|
| 217 |
+
- id: cmems_checksums
|
| 218 |
+
path: metadata/file_checksums.sha256
|
| 219 |
+
role: checksum
|
| 220 |
+
description_zh: 数据文件 SHA256 校验清单。
|
| 221 |
+
required: true
|
| 222 |
+
required_for: [preflight]
|
| 223 |
+
format: text
|
| 224 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: metadata/file_checksums.sha256, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 225 |
+
mirrors: []
|
| 226 |
+
local_path: CMEMS/metadata/file_checksums.sha256
|
| 227 |
+
size: null
|
| 228 |
+
checksum: null
|
| 229 |
+
large_file: false
|
| 230 |
+
config_files:
|
| 231 |
+
- id: validate_dataset_script
|
| 232 |
+
path: scripts/validate_dataset.py
|
| 233 |
+
role: preflight_script
|
| 234 |
+
description_zh: 数据集读取、schema、attrs、shape、dtype 和可选 SHA256 校验脚本。
|
| 235 |
+
required: true
|
| 236 |
+
required_for: [preflight]
|
| 237 |
+
format: python
|
| 238 |
+
source: {platform: modelscope, repo_id: OneScience/CMEMS, repo_type: dataset, path: scripts/validate_dataset.py, revision: main, url: null, download_method: command_ref, command_ref: commands.download.download_dataset}
|
| 239 |
+
mirrors: []
|
| 240 |
+
local_path: CMEMS/scripts/validate_dataset.py
|
| 241 |
+
size: null
|
| 242 |
+
checksum: null
|
| 243 |
+
large_file: false
|
| 244 |
+
sample_files: []
|
| 245 |
+
|
| 246 |
+
dataset:
|
| 247 |
+
format: [hdf5]
|
| 248 |
+
sample_unit: one daily ocean state transition sample per time index
|
| 249 |
+
schema:
|
| 250 |
+
path: metadata/schema.yaml
|
| 251 |
+
checksums:
|
| 252 |
+
path: metadata/file_checksums.sha256
|
| 253 |
+
algorithm: sha256
|
| 254 |
+
splits:
|
| 255 |
+
train: [1993, 1994, 1995, 1996, 1997]
|
| 256 |
+
validation: [1998]
|
| 257 |
+
test: [1999]
|
| 258 |
+
structure:
|
| 259 |
+
hdf5_datasets: [fields, global_means, global_stds]
|
| 260 |
+
fields_shape: [3, 96, 2041, 4320]
|
| 261 |
+
stats_shape: [1, 96, 1, 1]
|
| 262 |
+
dtype: float32
|
| 263 |
+
time_step_hours: 24
|
| 264 |
+
|
| 265 |
+
relations:
|
| 266 |
+
required_datasets: []
|
| 267 |
+
optional_datasets: []
|
| 268 |
+
compatible_models:
|
| 269 |
+
- id: OneScience/XiHe
|
| 270 |
+
role: train_data
|
| 271 |
+
required_for: [preflight, train, inference, evaluate, visualize]
|
| 272 |
+
resource_ref:
|
| 273 |
+
platform: modelscope
|
| 274 |
+
repo_id: OneScience/XiHe
|
| 275 |
+
repo_type: model
|
| 276 |
+
url: https://modelscope.cn/models/OneScience/XiHe
|
| 277 |
+
revision: main
|
| 278 |
+
readme_path: README.md
|
| 279 |
+
manifest_path: manifest.yaml
|
| 280 |
+
expected_local_path: XiHe/data/data
|
| 281 |
+
adapter: XiHe/scripts/prepare_runtime_data.py
|
| 282 |
+
|
| 283 |
+
run_matrix:
|
| 284 |
+
scenarios:
|
| 285 |
+
- name: dataset_validation
|
| 286 |
+
capability: preflight
|
| 287 |
+
default: true
|
| 288 |
+
description_zh: 验证 CMEMS 数据集目录结构、HDF5 schema、shape、dtype、attrs 和统计量。
|
| 289 |
+
required_datasets:
|
| 290 |
+
- id: OneScience/CMEMS
|
| 291 |
+
role: self
|
| 292 |
+
local_path: .
|
| 293 |
+
required_model_files: []
|
| 294 |
+
required_data_files: [data/1993.h5, data/1994.h5, data/1995.h5, data/1996.h5, data/1997.h5, data/1998.h5, data/1999.h5]
|
| 295 |
+
preconditions:
|
| 296 |
+
- cwd 为下载后的 CMEMS 数据集仓库根目录。
|
| 297 |
+
command_refs:
|
| 298 |
+
- commands.preflight.validate_structure
|
| 299 |
+
outputs: []
|
| 300 |
+
- name: dataset_checksum_validation
|
| 301 |
+
capability: preflight
|
| 302 |
+
description_zh: 在结构验证基础上读取全部 7 个大文件并校验 SHA256,耗时较长。
|
| 303 |
+
required_datasets:
|
| 304 |
+
- id: OneScience/CMEMS
|
| 305 |
+
role: self
|
| 306 |
+
local_path: .
|
| 307 |
+
required_model_files: []
|
| 308 |
+
required_data_files: [data/*.h5, metadata/file_checksums.sha256]
|
| 309 |
+
preconditions:
|
| 310 |
+
- cwd 为下载后的 CMEMS 数据集仓库根目录。
|
| 311 |
+
command_refs:
|
| 312 |
+
- commands.preflight.validate_with_checksums
|
| 313 |
+
outputs: []
|
| 314 |
+
- name: prepare_for_xihe
|
| 315 |
+
capability: prepare
|
| 316 |
+
description_zh: 与 OneScience/XiHe 模型配合时,由模型包脚本将本数据集整理到 XiHe/data/data。
|
| 317 |
+
required_datasets:
|
| 318 |
+
- id: OneScience/CMEMS
|
| 319 |
+
role: train_data
|
| 320 |
+
local_path: CMEMS
|
| 321 |
+
required_model_files: [XiHe/scripts/prepare_runtime_data.py, XiHe/conf/config.yaml]
|
| 322 |
+
required_data_files: [CMEMS/data/*.h5]
|
| 323 |
+
preconditions:
|
| 324 |
+
- OneScience/XiHe 下载到 ./XiHe。
|
| 325 |
+
- OneScience/CMEMS 下载到 ./CMEMS。
|
| 326 |
+
command_refs:
|
| 327 |
+
- commands.prepare.prepare_for_xihe
|
| 328 |
+
outputs:
|
| 329 |
+
- XiHe/data/data/*.h5
|
| 330 |
+
- XiHe/data/stats/global_means.npy
|
| 331 |
+
- XiHe/data/land_mask.npy
|
| 332 |
+
|
| 333 |
+
capabilities:
|
| 334 |
+
inference: false
|
| 335 |
+
train: false
|
| 336 |
+
finetune: false
|
| 337 |
+
evaluate: false
|
| 338 |
+
visualize: false
|
| 339 |
+
deploy: false
|
| 340 |
+
|
| 341 |
+
commands:
|
| 342 |
+
download:
|
| 343 |
+
- name: download_dataset
|
| 344 |
+
description: 下载 CMEMS 数据集标准仓库。
|
| 345 |
+
target: dataset
|
| 346 |
+
repo_id: OneScience/CMEMS
|
| 347 |
+
source: .
|
| 348 |
+
local_path: ./CMEMS
|
| 349 |
+
required: true
|
| 350 |
+
required_for: [preflight, train, inference, evaluate]
|
| 351 |
+
command: modelscope download --dataset OneScience/CMEMS --local_dir ./CMEMS
|
| 352 |
+
- name: download_compatible_model
|
| 353 |
+
description: 下载适配模型 XiHe。
|
| 354 |
+
target: model
|
| 355 |
+
repo_id: OneScience/XiHe
|
| 356 |
+
source: .
|
| 357 |
+
local_path: ./XiHe
|
| 358 |
+
required: false
|
| 359 |
+
required_for: [train, inference, evaluate]
|
| 360 |
+
command: modelscope download --model OneScience/XiHe --local_dir ./XiHe
|
| 361 |
+
prepare:
|
| 362 |
+
- name: prepare_for_xihe
|
| 363 |
+
description: 调用 XiHe 模型包脚本,把 CMEMS 数据组织成 XiHe 运行布局。
|
| 364 |
+
cwd: ./XiHe
|
| 365 |
+
command: python scripts/prepare_runtime_data.py --dataset-root ../CMEMS --runtime-data-dir ./data
|
| 366 |
+
required_files: [../CMEMS/data/1993.h5, scripts/prepare_runtime_data.py]
|
| 367 |
+
required_env: [python, h5py, numpy]
|
| 368 |
+
expected_outputs:
|
| 369 |
+
- path: data/data/1993.h5
|
| 370 |
+
type: file
|
| 371 |
+
success_criteria: [exit_code == 0, output_path_exists]
|
| 372 |
+
preflight:
|
| 373 |
+
- name: validate_structure
|
| 374 |
+
description: 快速读取每个 HDF5 文件的结构、变量、shape、dtype 和统计量。
|
| 375 |
+
cwd: .
|
| 376 |
+
command: python scripts/validate_dataset.py --dataset-root .
|
| 377 |
+
required_files: [metadata/schema.yaml, metadata/file_checksums.sha256, data/1993.h5, data/1999.h5]
|
| 378 |
+
required_env: [python, h5py, numpy, pyyaml]
|
| 379 |
+
expected_outputs: []
|
| 380 |
+
success_criteria: [exit_code == 0]
|
| 381 |
+
- name: validate_with_checksums
|
| 382 |
+
description: 完整读取所有 HDF5 文件并校验 SHA256。
|
| 383 |
+
cwd: .
|
| 384 |
+
command: python scripts/validate_dataset.py --dataset-root . --verify-checksums
|
| 385 |
+
required_files: [metadata/file_checksums.sha256, data/1993.h5, data/1999.h5]
|
| 386 |
+
required_env: [python, h5py, numpy, pyyaml]
|
| 387 |
+
expected_outputs: []
|
| 388 |
+
success_criteria: [exit_code == 0]
|
| 389 |
+
inference: []
|
| 390 |
+
train: []
|
| 391 |
+
finetune: []
|
| 392 |
+
evaluate: []
|
| 393 |
+
visualize: []
|
| 394 |
+
deploy: []
|
| 395 |
+
|
| 396 |
+
expected_outputs:
|
| 397 |
+
- path: stdout
|
| 398 |
+
type: text
|
| 399 |
+
produced_by: commands.preflight.validate_structure
|
| 400 |
+
contains: CMEMS dataset validation passed.
|
| 401 |
+
- path: XiHe/data/stats/global_means.npy
|
| 402 |
+
type: file
|
| 403 |
+
produced_by: commands.prepare.prepare_for_xihe
|
| 404 |
+
|
| 405 |
+
diagnostics:
|
| 406 |
+
- name: missing_hdf5
|
| 407 |
+
match: "missing file"
|
| 408 |
+
explanation_zh: 数据集未完整下载或当前工作目录不是 CMEMS 仓库根目录。
|
| 409 |
+
fix_zh: 执行 modelscope download --dataset OneScience/CMEMS --local_dir ./CMEMS,并在 ./CMEMS 中运行验证命令。
|
| 410 |
+
- name: schema_mismatch
|
| 411 |
+
match: "variables attr does not match schema"
|
| 412 |
+
explanation_zh: HDF5 文件变量顺序或变量名与 schema.yaml 不一致。
|
| 413 |
+
fix_zh: 重新校验上传文件是否来自同��批 CMEMS 数据,必要时重新生成 schema 和 checksum。
|
| 414 |
+
- name: checksum_mismatch
|
| 415 |
+
match: "sha256 mismatch"
|
| 416 |
+
explanation_zh: 数据文件内容与上传前校验清单不一致。
|
| 417 |
+
fix_zh: 重新下载或重新上传对应年份文件。
|
| 418 |
+
|
| 419 |
+
domain_extension:
|
| 420 |
+
earth:
|
| 421 |
+
subdomain: ocean
|
| 422 |
+
source_family: CMEMS
|
| 423 |
+
grid:
|
| 424 |
+
lat_size: 2041
|
| 425 |
+
lon_size: 4320
|
| 426 |
+
spatial_resolution: [0.0833333333, 0.0833333333]
|
| 427 |
+
time:
|
| 428 |
+
years: [1993, 1994, 1995, 1996, 1997, 1998, 1999]
|
| 429 |
+
time_step_hours: 24
|
| 430 |
+
samples_per_year_file: 3
|
| 431 |
+
variables_count: 96
|
scripts/validate_dataset.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate the standardized OneScience/CMEMS dataset package."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import hashlib
|
| 8 |
+
from pathlib import Path
|
| 9 |
+
|
| 10 |
+
import h5py
|
| 11 |
+
import numpy as np
|
| 12 |
+
import yaml
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
YEARS = [1993, 1994, 1995, 1996, 1997, 1998, 1999]
|
| 16 |
+
EXPECTED_FIELD_SHAPE = (3, 96, 2041, 4320)
|
| 17 |
+
EXPECTED_STATS_SHAPE = (1, 96, 1, 1)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
def sha256(path: Path) -> str:
|
| 21 |
+
digest = hashlib.sha256()
|
| 22 |
+
with path.open("rb") as handle:
|
| 23 |
+
for chunk in iter(lambda: handle.read(1024 * 1024 * 16), b""):
|
| 24 |
+
digest.update(chunk)
|
| 25 |
+
return digest.hexdigest()
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
def load_schema(path: Path) -> dict:
|
| 29 |
+
with path.open("r", encoding="utf-8") as handle:
|
| 30 |
+
return yaml.safe_load(handle)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
def load_checksums(path: Path) -> dict[str, str]:
|
| 34 |
+
checksums = {}
|
| 35 |
+
with path.open("r", encoding="utf-8") as handle:
|
| 36 |
+
for line in handle:
|
| 37 |
+
if not line.strip():
|
| 38 |
+
continue
|
| 39 |
+
digest, relpath = line.strip().split(maxsplit=1)
|
| 40 |
+
checksums[relpath] = digest
|
| 41 |
+
return checksums
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
def normalize_attr_strings(values) -> list[str]:
|
| 45 |
+
return [value.decode() if isinstance(value, bytes) else str(value) for value in values]
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def main() -> None:
|
| 49 |
+
parser = argparse.ArgumentParser(description="Check CMEMS HDF5 files, schema, attrs and optional checksums.")
|
| 50 |
+
parser.add_argument("--dataset-root", default=".")
|
| 51 |
+
parser.add_argument("--verify-checksums", action="store_true")
|
| 52 |
+
args = parser.parse_args()
|
| 53 |
+
|
| 54 |
+
root = Path(args.dataset_root).resolve()
|
| 55 |
+
schema = load_schema(root / "metadata" / "schema.yaml")
|
| 56 |
+
expected_variables = schema["variables"]
|
| 57 |
+
checksums = load_checksums(root / "metadata" / "file_checksums.sha256")
|
| 58 |
+
|
| 59 |
+
for year in YEARS:
|
| 60 |
+
relpath = f"data/{year}.h5"
|
| 61 |
+
path = root / relpath
|
| 62 |
+
if not path.exists():
|
| 63 |
+
raise FileNotFoundError(f"missing file: {path}")
|
| 64 |
+
if path.stat().st_size != 10157335296:
|
| 65 |
+
raise AssertionError(f"{path} size mismatch: {path.stat().st_size}")
|
| 66 |
+
with h5py.File(path, "r") as handle:
|
| 67 |
+
for key in ("fields", "global_means", "global_stds"):
|
| 68 |
+
if key not in handle:
|
| 69 |
+
raise KeyError(f"{path} missing dataset {key}")
|
| 70 |
+
fields = handle["fields"]
|
| 71 |
+
if tuple(fields.shape) != EXPECTED_FIELD_SHAPE:
|
| 72 |
+
raise AssertionError(f"{path} fields shape {fields.shape}")
|
| 73 |
+
if fields.dtype != np.dtype("float32"):
|
| 74 |
+
raise AssertionError(f"{path} fields dtype {fields.dtype}")
|
| 75 |
+
if int(fields.attrs["time_step"]) != 24:
|
| 76 |
+
raise AssertionError(f"{path} time_step attr mismatch")
|
| 77 |
+
variables = normalize_attr_strings(fields.attrs["variables"])
|
| 78 |
+
if variables != expected_variables:
|
| 79 |
+
raise AssertionError(f"{path} variables attr does not match schema")
|
| 80 |
+
for stat_key in ("global_means", "global_stds"):
|
| 81 |
+
stat = handle[stat_key]
|
| 82 |
+
if tuple(stat.shape) != EXPECTED_STATS_SHAPE:
|
| 83 |
+
raise AssertionError(f"{path} {stat_key} shape {stat.shape}")
|
| 84 |
+
if stat.dtype != np.dtype("float32"):
|
| 85 |
+
raise AssertionError(f"{path} {stat_key} dtype {stat.dtype}")
|
| 86 |
+
if args.verify_checksums:
|
| 87 |
+
actual = sha256(path)
|
| 88 |
+
if actual != checksums[relpath]:
|
| 89 |
+
raise AssertionError(f"{path} sha256 mismatch: {actual} != {checksums[relpath]}")
|
| 90 |
+
|
| 91 |
+
print("CMEMS dataset validation passed.")
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
if __name__ == "__main__":
|
| 95 |
+
main()
|