variant stringclasses 2
values | field stringclasses 8
values | var stringclasses 8
values | step null | path stringlengths 26 45 | dtype stringclasses 1
value | shape listlengths 3 3 ⌀ | file_shape listlengths 3 3 ⌀ | component null | transpose null | bytes int64 440 537M | sha256 stringclasses 9
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
original | baryon_density | baryon_density | null | 512x512x512/baryon_density.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 352856560d319c207622662484d358bce2198282de4a50c7d5963b97a4f2986d |
original | dark_matter_density | dark_matter_density | null | 512x512x512/dark_matter_density.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | d7cd7ad513afc8b31867e7cab58df8bf28f6e44314e340b8483dbd2057bbe438 |
original | temperature | temperature | null | 512x512x512/temperature.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 805895e894603952a156605e5b1ffae0bd37f349daa089036a49b8a4a5ed90bd |
original | null | null | null | 512x512x512/template_data.txt | null | null | null | null | null | 440 | 93db11305d765c267a3b326ee6765ff1467095e1a6e157caf1da4c36cfca17cd |
original | velocity_x | velocity_x | null | 512x512x512/velocity_x.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 8796f3bbb05f4b203799f8daba6f5c05258efb769179dcc2b231d2f058fde86b |
original | velocity_y | velocity_y | null | 512x512x512/velocity_y.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 1adf59dd2bf1b2a79b3ebbac99a547f448a423f4e30c170fb331adb948318eff |
original | velocity_z | velocity_z | null | 512x512x512/velocity_z.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 619553bbe1222743c22cac4da57e64d79659cf3cd1c10a7137aadba9156158b9 |
log | baryon_density_log10 | baryon_density_log10 | null | 512x512x512_log/baryon_density_log10.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | c2f5f8d99cdc3be46f54acff5c585beefe315f1180dc8d6204080523e73119aa |
log | dark_matter_density_log10 | dark_matter_density_log10 | null | 512x512x512_log/dark_matter_density_log10.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | d308cc8918d427b7ce563d0bb98ff84fc2bc13faff9743b3cec93b39f3e8de68 |
log | temperature | temperature | null | 512x512x512_log/temperature.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 805895e894603952a156605e5b1ffae0bd37f349daa089036a49b8a4a5ed90bd |
log | velocity_x | velocity_x | null | 512x512x512_log/velocity_x.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 8796f3bbb05f4b203799f8daba6f5c05258efb769179dcc2b231d2f058fde86b |
log | velocity_y | velocity_y | null | 512x512x512_log/velocity_y.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 1adf59dd2bf1b2a79b3ebbac99a547f448a423f4e30c170fb331adb948318eff |
log | velocity_z | velocity_z | null | 512x512x512_log/velocity_z.f32 | <f4 | [
512,
512,
512
] | [
512,
512,
512
] | null | null | 536,870,912 | 619553bbe1222743c22cac4da57e64d79659cf3cd1c10a7137aadba9156158b9 |
SDRBench — NYX
Cosmology: adaptive-mesh hydrodynamics + N-body simulation (Nyx), 512 x 512 x 512, single precision, little-endian.
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 thesdrbenchpackage orhf_hub_download+ numpy as shown below.
This repository is an unmodified mirror of the NYX data of SDRBench, the
Scientific Data Reduction Benchmark. The originals are hosted by Argonne National Laboratory on Globus;
every archive was unpacked and its files uploaded byte-for-byte (sha256 verified) (revision e6ce039140). metadata/ holds
the original SDRBench property and template files. Kept in sync automatically by
szcompressor/sdrbench.
- Data provider: Zarija Lukic (LBNL)
- Size: 6.4 GB in 2 variant(s)
- Format: raw little-endian binary, C order (slowest dimension first); dtype and shape per field below
Usage
pip install "sdrbench[sz3]" # sdrbench + pysz (SZ3)
import numpy as np
import sdrbench
from pysz import sz, szConfig, szErrorBoundMode
ds = sdrbench.dataset("nyx") # default variant "original"
print(ds.fields)
x = ds["baryon_density"] # numpy array, dtype <f4, shape (512, 512, 512)
# compress with SZ3 (pysz) at a 1e-3 value-range-relative error bound
conf = szConfig()
conf.errorBoundMode = szErrorBoundMode.REL
conf.relErrorBound = 1e-3
compressed, ratio = sz.compress(np.ascontiguousarray(x), conf)
y, _ = sz.decompress(compressed, x.dtype.type, x.shape)
max_err, psnr, nrmse = sz.verify(np.asarray(x), y)
print(f"ratio {ratio:.1f}x, PSNR {psnr:.1f} dB, max error {max_err:.3g}")
Files are fetched on first use (in parallel with ds.download("data/")) and cached, pinned to the revision
of the installed sdrbench release; if Hugging Face is unreachable the package falls back to the original
archive on Globus. Existing local SDRBench copies can be used with sdrbench.dataset("nyx", root="/path").
Without the package, with huggingface_hub and numpy only:
from huggingface_hub import hf_hub_download
import numpy as np
p = hf_hub_download("sdrbench/nyx", "512x512x512/baryon_density.f32", repo_type="dataset", revision="e6ce03914098d6dcdf160cb3fe567e7c784c6edf")
x = np.fromfile(p, dtype="<f4").reshape((512, 512, 512))
Variants and fields
original (default)
sdrbench.dataset("nyx", "original") — folder 512x512x512/ — 7 files, 3.2 GB, from SDRBENCH-EXASKY-NYX-512x512x512.tar.gz.
Six fields: baryon and dark-matter density, temperature, velocities.
| Field | dtype | Shape (C order) | File |
|---|---|---|---|
baryon_density |
<f4 |
512 x 512 x 512 | 512x512x512/baryon_density.f32 |
dark_matter_density |
<f4 |
512 x 512 x 512 | 512x512x512/dark_matter_density.f32 |
temperature |
<f4 |
512 x 512 x 512 | 512x512x512/temperature.f32 |
velocity_x |
<f4 |
512 x 512 x 512 | 512x512x512/velocity_x.f32 |
velocity_y |
<f4 |
512 x 512 x 512 | 512x512x512/velocity_y.f32 |
velocity_z |
<f4 |
512 x 512 x 512 | 512x512x512/velocity_z.f32 |
Other files: 512x512x512/template_data.txt
log
sdrbench.dataset("nyx", "log") — folder 512x512x512_log/ — 6 files, 3.2 GB, from SDRBENCH-EXASKY-NYX-512x512x512_log.tar.gz.
The same fields with the two densities log10-transformed (recommended for visualization).
| Field | dtype | Shape (C order) | File |
|---|---|---|---|
baryon_density_log10 |
<f4 |
512 x 512 x 512 | 512x512x512_log/baryon_density_log10.f32 |
dark_matter_density_log10 |
<f4 |
512 x 512 x 512 | 512x512x512_log/dark_matter_density_log10.f32 |
temperature |
<f4 |
512 x 512 x 512 | 512x512x512_log/temperature.f32 |
velocity_x |
<f4 |
512 x 512 x 512 | 512x512x512_log/velocity_x.f32 |
velocity_y |
<f4 |
512 x 512 x 512 | 512x512x512_log/velocity_y.f32 |
velocity_z |
<f4 |
512 x 512 x 512 | 512x512x512_log/velocity_z.f32 |
Citation
Please cite SDRBench; sdrbench cite nyx prints it:
@inproceedings{zhao2020sdrbench,
title = {{SDRBench}: Scientific Data Reduction Benchmark for Lossy Compressors},
author = {Zhao, Kai and Di, Sheng and Liang, Xin and Li, Sihuan and Tao, Dingwen and Chen, Zizhong and Cappello, Franck},
booktitle = {2020 IEEE International Conference on Big Data (Big Data)},
pages = {2716--2724},
year = {2020}
}
License and terms
The data are distributed by the SDRBench team for research use under the terms of the original data providers listed above (see the SDRBench website); please acknowledge them as requested. Rights remain with the data providers.
- Downloads last month
- 47