Update dataset card and file table
Browse files- README.md +31 -23
- files.jsonl +13 -0
README.md
CHANGED
|
@@ -3,29 +3,33 @@ license: other
|
|
| 3 |
license_name: sdrbench
|
| 4 |
license_link: https://sdrbench.github.io/
|
| 5 |
pretty_name: "SDRBench: NYX"
|
| 6 |
-
viewer: false
|
| 7 |
tags:
|
| 8 |
- scientific-data
|
| 9 |
- lossy-compression
|
| 10 |
- sdrbench
|
| 11 |
- hpc
|
| 12 |
- sz3
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
---
|
| 14 |
|
| 15 |
# SDRBench — NYX
|
| 16 |
|
| 17 |
-
Cosmology: adaptive
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
files
|
|
|
|
| 24 |
[szcompressor/sdrbench](https://github.com/szcompressor/sdrbench).
|
| 25 |
|
| 26 |
-
- **Data
|
| 27 |
-
- **
|
| 28 |
-
- **Format:** raw little-endian binary, C order (slowest dimension first)
|
| 29 |
|
| 30 |
## Usage
|
| 31 |
|
|
@@ -38,7 +42,7 @@ import numpy as np
|
|
| 38 |
import sdrbench
|
| 39 |
from pysz import sz, szConfig, szErrorBoundMode
|
| 40 |
|
| 41 |
-
ds = sdrbench.dataset("nyx")
|
| 42 |
print(ds.fields)
|
| 43 |
x = ds["baryon_density"] # numpy array, dtype <f4, shape (512, 512, 512)
|
| 44 |
|
|
@@ -52,26 +56,27 @@ max_err, psnr, nrmse = sz.verify(np.asarray(x), y)
|
|
| 52 |
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
|
| 53 |
```
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
back to the original archive on Globus.
|
| 59 |
|
| 60 |
-
Without the package,
|
| 61 |
|
| 62 |
```python
|
| 63 |
from huggingface_hub import hf_hub_download
|
| 64 |
import numpy as np
|
| 65 |
-
p = hf_hub_download("sdrbench/nyx", "512x512x512/baryon_density.f32", repo_type="dataset")
|
| 66 |
x = np.fromfile(p, dtype="<f4").reshape((512, 512, 512))
|
| 67 |
```
|
| 68 |
|
| 69 |
-
##
|
| 70 |
|
| 71 |
|
| 72 |
### `original` (default)
|
| 73 |
|
| 74 |
-
7 files, 3.2 GB, from [SDRBENCH-EXASKY-NYX-512x512x512.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/EXASKY/NYX/SDRBENCH-EXASKY-NYX-512x512x512.tar.gz).
|
|
|
|
|
|
|
| 75 |
|
| 76 |
| Field | dtype | Shape (C order) | File |
|
| 77 |
|---|---|---|---|
|
|
@@ -86,7 +91,9 @@ Other files: `512x512x512/template_data.txt`
|
|
| 86 |
|
| 87 |
### `log`
|
| 88 |
|
| 89 |
-
6 files, 3.2 GB, from [SDRBENCH-EXASKY-NYX-512x512x512_log.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/EXASKY/NYX/SDRBENCH-EXASKY-NYX-512x512x512_log.tar.gz).
|
|
|
|
|
|
|
| 90 |
|
| 91 |
| Field | dtype | Shape (C order) | File |
|
| 92 |
|---|---|---|---|
|
|
@@ -99,7 +106,7 @@ Other files: `512x512x512/template_data.txt`
|
|
| 99 |
|
| 100 |
## Citation
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
```bibtex
|
| 105 |
@inproceedings{zhao2020sdrbench,
|
|
@@ -113,5 +120,6 @@ If you use this dataset, please cite SDRBench:
|
|
| 113 |
|
| 114 |
## License and terms
|
| 115 |
|
| 116 |
-
The data are distributed
|
| 117 |
-
|
|
|
|
|
|
| 3 |
license_name: sdrbench
|
| 4 |
license_link: https://sdrbench.github.io/
|
| 5 |
pretty_name: "SDRBench: NYX"
|
|
|
|
| 6 |
tags:
|
| 7 |
- scientific-data
|
| 8 |
- lossy-compression
|
| 9 |
- sdrbench
|
| 10 |
- hpc
|
| 11 |
- sz3
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: files
|
| 14 |
+
data_files: files.jsonl
|
| 15 |
+
default: true
|
| 16 |
---
|
| 17 |
|
| 18 |
# SDRBench — NYX
|
| 19 |
|
| 20 |
+
Cosmology: adaptive-mesh hydrodynamics + N-body simulation (Nyx), 512 x 512 x 512, single precision, little-endian.
|
| 21 |
|
| 22 |
+
> **Raw binary arrays, not an Arrow/Parquet dataset.** `datasets.load_dataset("sdrbench/nyx")` returns the table of files (`files.jsonl`: path, dtype, shape, sha256). Read the arrays with the `sdrbench` package or `hf_hub_download` + numpy as shown below.
|
| 23 |
+
|
| 24 |
+
This repository is an **unmodified mirror** of the NYX data of [SDRBench](https://sdrbench.github.io/datasets.html), the
|
| 25 |
+
Scientific Data Reduction Benchmark. The originals are hosted by Argonne National Laboratory on Globus;
|
| 26 |
+
every archive was unpacked and its files uploaded byte-for-byte (sha256 verified) (revision `e6ce039140`). `metadata/` holds
|
| 27 |
+
the original SDRBench property and template files. Kept in sync automatically by
|
| 28 |
[szcompressor/sdrbench](https://github.com/szcompressor/sdrbench).
|
| 29 |
|
| 30 |
+
- **Data provider:** Zarija Lukic (LBNL)
|
| 31 |
+
- **Size:** 6.4 GB in 2 variant(s)
|
| 32 |
+
- **Format:** raw little-endian binary, C order (slowest dimension first); dtype and shape per field below
|
| 33 |
|
| 34 |
## Usage
|
| 35 |
|
|
|
|
| 42 |
import sdrbench
|
| 43 |
from pysz import sz, szConfig, szErrorBoundMode
|
| 44 |
|
| 45 |
+
ds = sdrbench.dataset("nyx") # default variant "original"
|
| 46 |
print(ds.fields)
|
| 47 |
x = ds["baryon_density"] # numpy array, dtype <f4, shape (512, 512, 512)
|
| 48 |
|
|
|
|
| 56 |
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
|
| 57 |
```
|
| 58 |
|
| 59 |
+
Files are fetched on first use (in parallel with `ds.download("data/")`) and cached, pinned to the revision
|
| 60 |
+
of the installed `sdrbench` release; if Hugging Face is unreachable the package falls back to the original
|
| 61 |
+
archive on Globus. Existing local SDRBench copies can be used with `sdrbench.dataset("nyx", root="/path")`.
|
|
|
|
| 62 |
|
| 63 |
+
Without the package, with `huggingface_hub` and numpy only:
|
| 64 |
|
| 65 |
```python
|
| 66 |
from huggingface_hub import hf_hub_download
|
| 67 |
import numpy as np
|
| 68 |
+
p = hf_hub_download("sdrbench/nyx", "512x512x512/baryon_density.f32", repo_type="dataset", revision="e6ce03914098d6dcdf160cb3fe567e7c784c6edf")
|
| 69 |
x = np.fromfile(p, dtype="<f4").reshape((512, 512, 512))
|
| 70 |
```
|
| 71 |
|
| 72 |
+
## Variants and fields
|
| 73 |
|
| 74 |
|
| 75 |
### `original` (default)
|
| 76 |
|
| 77 |
+
`sdrbench.dataset("nyx", "original")` — folder `512x512x512/` — 7 files, 3.2 GB, from [SDRBENCH-EXASKY-NYX-512x512x512.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/EXASKY/NYX/SDRBENCH-EXASKY-NYX-512x512x512.tar.gz).
|
| 78 |
+
|
| 79 |
+
Six fields: baryon and dark-matter density, temperature, velocities.
|
| 80 |
|
| 81 |
| Field | dtype | Shape (C order) | File |
|
| 82 |
|---|---|---|---|
|
|
|
|
| 91 |
|
| 92 |
### `log`
|
| 93 |
|
| 94 |
+
`sdrbench.dataset("nyx", "log")` — folder `512x512x512_log/` — 6 files, 3.2 GB, from [SDRBENCH-EXASKY-NYX-512x512x512_log.tar.gz](https://g-d0cd3f.fd635.8443.data.globus.org/raw-data/EXASKY/NYX/SDRBENCH-EXASKY-NYX-512x512x512_log.tar.gz).
|
| 95 |
+
|
| 96 |
+
The same fields with the two densities log10-transformed (recommended for visualization).
|
| 97 |
|
| 98 |
| Field | dtype | Shape (C order) | File |
|
| 99 |
|---|---|---|---|
|
|
|
|
| 106 |
|
| 107 |
## Citation
|
| 108 |
|
| 109 |
+
Please cite SDRBench; `sdrbench cite nyx` prints it:
|
| 110 |
|
| 111 |
```bibtex
|
| 112 |
@inproceedings{zhao2020sdrbench,
|
|
|
|
| 120 |
|
| 121 |
## License and terms
|
| 122 |
|
| 123 |
+
The data are distributed by the SDRBench team for research use under the terms of the original
|
| 124 |
+
data providers listed above (see the [SDRBench website](https://sdrbench.github.io/datasets.html)); please acknowledge them as
|
| 125 |
+
requested. Rights remain with the data providers.
|
files.jsonl
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"variant": "original", "field": "baryon_density", "var": "baryon_density", "step": null, "path": "512x512x512/baryon_density.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "352856560d319c207622662484d358bce2198282de4a50c7d5963b97a4f2986d"}
|
| 2 |
+
{"variant": "original", "field": "dark_matter_density", "var": "dark_matter_density", "step": null, "path": "512x512x512/dark_matter_density.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "d7cd7ad513afc8b31867e7cab58df8bf28f6e44314e340b8483dbd2057bbe438"}
|
| 3 |
+
{"variant": "original", "field": "temperature", "var": "temperature", "step": null, "path": "512x512x512/temperature.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "805895e894603952a156605e5b1ffae0bd37f349daa089036a49b8a4a5ed90bd"}
|
| 4 |
+
{"variant": "original", "field": null, "var": null, "step": null, "path": "512x512x512/template_data.txt", "dtype": null, "shape": null, "file_shape": null, "component": null, "transpose": null, "bytes": 440, "sha256": "93db11305d765c267a3b326ee6765ff1467095e1a6e157caf1da4c36cfca17cd"}
|
| 5 |
+
{"variant": "original", "field": "velocity_x", "var": "velocity_x", "step": null, "path": "512x512x512/velocity_x.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "8796f3bbb05f4b203799f8daba6f5c05258efb769179dcc2b231d2f058fde86b"}
|
| 6 |
+
{"variant": "original", "field": "velocity_y", "var": "velocity_y", "step": null, "path": "512x512x512/velocity_y.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "1adf59dd2bf1b2a79b3ebbac99a547f448a423f4e30c170fb331adb948318eff"}
|
| 7 |
+
{"variant": "original", "field": "velocity_z", "var": "velocity_z", "step": null, "path": "512x512x512/velocity_z.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "619553bbe1222743c22cac4da57e64d79659cf3cd1c10a7137aadba9156158b9"}
|
| 8 |
+
{"variant": "log", "field": "baryon_density_log10", "var": "baryon_density_log10", "step": null, "path": "512x512x512_log/baryon_density_log10.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "c2f5f8d99cdc3be46f54acff5c585beefe315f1180dc8d6204080523e73119aa"}
|
| 9 |
+
{"variant": "log", "field": "dark_matter_density_log10", "var": "dark_matter_density_log10", "step": null, "path": "512x512x512_log/dark_matter_density_log10.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "d308cc8918d427b7ce563d0bb98ff84fc2bc13faff9743b3cec93b39f3e8de68"}
|
| 10 |
+
{"variant": "log", "field": "temperature", "var": "temperature", "step": null, "path": "512x512x512_log/temperature.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "805895e894603952a156605e5b1ffae0bd37f349daa089036a49b8a4a5ed90bd"}
|
| 11 |
+
{"variant": "log", "field": "velocity_x", "var": "velocity_x", "step": null, "path": "512x512x512_log/velocity_x.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "8796f3bbb05f4b203799f8daba6f5c05258efb769179dcc2b231d2f058fde86b"}
|
| 12 |
+
{"variant": "log", "field": "velocity_y", "var": "velocity_y", "step": null, "path": "512x512x512_log/velocity_y.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "1adf59dd2bf1b2a79b3ebbac99a547f448a423f4e30c170fb331adb948318eff"}
|
| 13 |
+
{"variant": "log", "field": "velocity_z", "var": "velocity_z", "step": null, "path": "512x512x512_log/velocity_z.f32", "dtype": "<f4", "shape": [512, 512, 512], "file_shape": [512, 512, 512], "component": null, "transpose": null, "bytes": 536870912, "sha256": "619553bbe1222743c22cac4da57e64d79659cf3cd1c10a7137aadba9156158b9"}
|