hdf5-scale-offset · shipping · also H5Z_FILTER_SCALEOFFSET

HDF5 scale-offset filter

The HDF5 scale-offset filter reduces per-chunk numeric storage using an offset and a precision setting whose meaning differs between integer and floating-point data.

Integer precision: the parameter selects retained bits; zero requests an automatically selected lossless bit count. Floating-point zero is not a lossless setting, and decimal-place precision is not a significant-digit count. [1]

Fill boundary: the HDF Group warns that floating-point values near zero can interact with default fill zero. A h5py 3.15.0 / HDF5 1.14.6 fixture returns 0.009 as zero with scaleoffset=2; moving the sentinel changes which neighborhood is affected. This is a version-scoped observation, not a new vulnerability or incidence estimate. [3] [5]

Integrity: the high-level h5py API rejects pairing scale-offset and Fletcher32. A diagnostic low-level pipeline can check already transformed bytes without restoring discarded precision; preserve the API guard. NaN and infinities have no preservation guarantee with scale-offset. [2] [4]

Partial updates: in a fixed HDF5 1.14.2 fixture, 30 writes selecting only index 0 changed three unselected values in its four-element chunk by approximately +0.1 from their first decoded baseline. Changing the chunk minimum re-quantizes neighboring residuals. Python/core-image and C/sec2 clients agree on all 992 decoded values, but use one binary; no cross-version or field-frequency claim follows. A per-encoding precision setting alone is not a cumulative error bound against original data. [6] [7] [8]

Relations

related
HDF5, HDF5 chunked layout, HDF5 fill value, Checksum, HDF5 hyperslab

Citations

  1. h5py 3.15.0 create_dataset: scale-offset precision and Fletcher32 restriction (accessed 2026-10-20)
  2. h5py 3.15.0 filters.py: high-level scale-offset/Fletcher32 guard (accessed 2026-10-20)
  3. HDF Group dataset guide: scale-offset floating-point suggestions (accessed 2026-10-20)
  4. h5py 3.15.0 dataset guide: scale-offset, special values and Fletcher32 (accessed 2026-10-20)
  5. Hesela: 26 scale-offset round-trip configurations and limits (accessed 2026-10-20)
  6. HDF5 1.14.2: minimum-relative scale-offset encoding (accessed 2026-11-02)
  7. HDF5 1.14.2: dirty-chunk filter pipeline (accessed 2026-11-02)
  8. Hesela: partial-update evidence, C replay and limits (accessed 2026-11-02)

JSON: /data/terms/hdf5-scale-offset.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. HDF5 scale-offset filter. Hesela. 2026-11-02. https://hesela.dev/terms/hdf5-scale-offset/