Update dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: sdrbench
|
| 4 |
+
license_link: https://sdrbench.github.io/
|
| 5 |
+
pretty_name: "SDRBench: SCALE-LETKF"
|
| 6 |
+
tags:
|
| 7 |
+
- scientific-data
|
| 8 |
+
- lossy-compression
|
| 9 |
+
- sdrbench
|
| 10 |
+
- hpc
|
| 11 |
+
- sz3
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# SDRBench — SCALE-LETKF
|
| 15 |
+
|
| 16 |
+
Weather/climate simulation from the Local Ensemble Transform Kalman Filter (LETKF) data assimilation package for the SCALE-RM model. 13 fields of 98x1200x1200, single precision, little-endian; the _log variant holds log-transformed fields.
|
| 17 |
+
|
| 18 |
+
This repository is an **unmodified mirror** of the SCALE-LETKF dataset from
|
| 19 |
+
[SDRBench](https://sdrbench.github.io/datasets.html), the Scientific Data Reduction Benchmark. The originals are hosted by
|
| 20 |
+
Argonne National Laboratory on Globus; every archive was unpacked and its files uploaded
|
| 21 |
+
byte-for-byte (sha256 verified). `metadata/` holds the original SDRBench property and template
|
| 22 |
+
files. The mirror is kept in sync automatically by
|
| 23 |
+
[szcompressor/sdrbench](https://github.com/szcompressor/sdrbench).
|
| 24 |
+
|
| 25 |
+
- **Data source:** RIKEN; contact Guo-Yuan Lien (guoyuan.lien@gmail.com)
|
| 26 |
+
- **Total size:** 13.5 GB
|
| 27 |
+
- **Format:** raw little-endian binary, C order (slowest dimension first)
|
| 28 |
+
|
| 29 |
+
## Usage
|
| 30 |
+
|
| 31 |
+
```bash
|
| 32 |
+
pip install "sdrbench[sz3]" # sdrbench + pysz (SZ3)
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
import numpy as np
|
| 37 |
+
import sdrbench
|
| 38 |
+
from pysz import sz, szConfig, szErrorBoundMode
|
| 39 |
+
|
| 40 |
+
ds = sdrbench.dataset("scale-letkf") # default variant: 98x1200x1200
|
| 41 |
+
print(ds.fields)
|
| 42 |
+
x = ds["PRES"] # numpy array, dtype <f4, shape (98, 1200, 1200)
|
| 43 |
+
|
| 44 |
+
# compress with SZ3 (pysz) at a 1e-3 value-range-relative error bound
|
| 45 |
+
conf = szConfig()
|
| 46 |
+
conf.errorBoundMode = szErrorBoundMode.REL
|
| 47 |
+
conf.relErrorBound = 1e-3
|
| 48 |
+
compressed, ratio = sz.compress(np.ascontiguousarray(x), conf)
|
| 49 |
+
y, _ = sz.decompress(compressed, x.dtype.type, x.shape)
|
| 50 |
+
max_err, psnr, nrmse = sz.verify(np.asarray(x), y)
|
| 51 |
+
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
Other variants: `sdrbench.dataset("scale-letkf", "98x1200x1200_log")`.
|
| 55 |
+
|
| 56 |
+
Files are downloaded on first use and cached; if Hugging Face is unreachable the package falls
|
| 57 |
+
back to the original archive on Globus.
|
| 58 |
+
|
| 59 |
+
Without the package, any file can be read with `huggingface_hub` and numpy:
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from huggingface_hub import hf_hub_download
|
| 63 |
+
import numpy as np
|
| 64 |
+
p = hf_hub_download("sdrbench/scale-letkf", "98x1200x1200/PRES-98x1200x1200.f32", repo_type="dataset")
|
| 65 |
+
x = np.fromfile(p, dtype="<f4").reshape((98, 1200, 1200))
|
| 66 |
+
```
|
| 67 |
+
|
| 68 |
+
## Contents
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
### `98x1200x1200` (default)
|
| 72 |
+
|
| 73 |
+
12 files, 6.8 GB, from [SDRBENCH-SCALE-98x1200x1200.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/SCALE_LETKF/SDRBENCH-SCALE-98x1200x1200.tar.gz).
|
| 74 |
+
|
| 75 |
+
| Field | dtype | Shape (C order) | File |
|
| 76 |
+
|---|---|---|---|
|
| 77 |
+
| `PRES` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/PRES-98x1200x1200.f32` |
|
| 78 |
+
| `QC` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QC-98x1200x1200.f32` |
|
| 79 |
+
| `QG` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QG-98x1200x1200.f32` |
|
| 80 |
+
| `QI` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QI-98x1200x1200.f32` |
|
| 81 |
+
| `QR` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QR-98x1200x1200.f32` |
|
| 82 |
+
| `QS` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QS-98x1200x1200.f32` |
|
| 83 |
+
| `QV` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/QV-98x1200x1200.f32` |
|
| 84 |
+
| `RH` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/RH-98x1200x1200.f32` |
|
| 85 |
+
| `T` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/T-98x1200x1200.f32` |
|
| 86 |
+
| `U` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/U-98x1200x1200.f32` |
|
| 87 |
+
| `V` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/V-98x1200x1200.f32` |
|
| 88 |
+
| `W` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200/W-98x1200x1200.f32` |
|
| 89 |
+
|
| 90 |
+
### `98x1200x1200_log`
|
| 91 |
+
|
| 92 |
+
12 files, 6.8 GB, from [SDRBENCH-SCALE-98x1200x1200_log.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/SCALE_LETKF/SDRBENCH-SCALE-98x1200x1200_log.tar.gz).
|
| 93 |
+
|
| 94 |
+
| Field | dtype | Shape (C order) | File |
|
| 95 |
+
|---|---|---|---|
|
| 96 |
+
| `PRES` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/PRES-98x1200x1200.f32` |
|
| 97 |
+
| `QC.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QC-98x1200x1200.log10.f32` |
|
| 98 |
+
| `QG.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QG-98x1200x1200.log10.f32` |
|
| 99 |
+
| `QI.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QI-98x1200x1200.log10.f32` |
|
| 100 |
+
| `QR.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QR-98x1200x1200.log10.f32` |
|
| 101 |
+
| `QS.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QS-98x1200x1200.log10.f32` |
|
| 102 |
+
| `QV.log10` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/QV-98x1200x1200.log10.f32` |
|
| 103 |
+
| `RH` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/RH-98x1200x1200.f32` |
|
| 104 |
+
| `T` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/T-98x1200x1200.f32` |
|
| 105 |
+
| `U` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/U-98x1200x1200.f32` |
|
| 106 |
+
| `V` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/V-98x1200x1200.f32` |
|
| 107 |
+
| `W` | `<f4` | 98 x 1200 x 1200 | `98x1200x1200_log/W-98x1200x1200.f32` |
|
| 108 |
+
|
| 109 |
+
## Citation
|
| 110 |
+
|
| 111 |
+
If you use this dataset, please cite SDRBench:
|
| 112 |
+
|
| 113 |
+
```bibtex
|
| 114 |
+
@inproceedings{zhao2020sdrbench,
|
| 115 |
+
title = {{SDRBench}: Scientific Data Reduction Benchmark for Lossy Compressors},
|
| 116 |
+
author = {Zhao, Kai and Di, Sheng and Liang, Xin and Li, Sihuan and Tao, Dingwen and Chen, Zizhong and Cappello, Franck},
|
| 117 |
+
booktitle = {2020 IEEE International Conference on Big Data (Big Data)},
|
| 118 |
+
pages = {2716--2724},
|
| 119 |
+
year = {2020}
|
| 120 |
+
}
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## License and terms
|
| 124 |
+
|
| 125 |
+
The data are distributed under the same terms as on the [SDRBench website](https://sdrbench.github.io/datasets.html).
|
| 126 |
+
Rights remain with the original data providers listed above.
|