--- license: other license_name: sdrbench license_link: https://sdrbench.github.io/ pretty_name: "SDRBench: XGC" tags: - scientific-data - lossy-compression - sdrbench - hpc - sz3 configs: - config_name: files data_files: files.jsonl default: true --- # SDRBench — XGC Gyrokinetic fusion plasma simulation (XGC, PPPL): fields on an unstructured mesh of 20694 nodes x 512 toroidal planes, 9 time steps, double precision. > **Raw binary arrays, not an Arrow/Parquet dataset.** `datasets.load_dataset("sdrbench/xgc")` 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. This repository is an **unmodified mirror** of the XGC data of [SDRBench](https://sdrbench.github.io/datasets.html), 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 `f2518596a1`). `metadata/` holds the original SDRBench property and template files. Kept in sync automatically by [szcompressor/sdrbench](https://github.com/szcompressor/sdrbench). - **Data provider:** Princeton Plasma Physics Laboratory (PPPL); https://jychoi-hpc.github.io/adios-python-docs/XGC-mesh-and-field-data.html - **Size:** 3.1 GB in 2 variant(s) - **Format:** raw little-endian binary, C order (slowest dimension first); dtype and shape per field below ## Usage ```bash pip install "sdrbench[sz3]" # sdrbench + pysz (SZ3) ``` ```python import numpy as np import sdrbench from pysz import sz, szConfig, szErrorBoundMode ds = sdrbench.dataset("xgc") # default variant "raw" print(ds.fields) x = ds["mesh_coordinates-values"] # numpy array, dtype