{
  "status": "shipping",
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-02",
  "slug": "hdf5-scale-offset",
  "term": "HDF5 scale-offset filter",
  "aliases": [
    "H5Z_FILTER_SCALEOFFSET"
  ],
  "definition": "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.",
  "note": "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. [h5-scale-api]\n\nFill 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. [h5-scale-guide] [hesela-scale]\n\nIntegrity: 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. [h5-scale-guard] [h5-scale-dataset]\n\nPartial 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. [hdf5-requant-scale] [hdf5-requant-chunk] [hdf5-requant-evidence]",
  "related": [
    "hdf5",
    "hdf5-chunked-layout",
    "hdf5-fill-value",
    "checksum",
    "hdf5-hyperslab"
  ],
  "citations": [
    {
      "id": "h5-scale-api",
      "title": "h5py 3.15.0 create_dataset: scale-offset precision and Fletcher32 restriction",
      "url": "https://github.com/h5py/h5py/blob/3.15.0/h5py/_hl/group.py#L103-L116",
      "accessed": "2026-10-20"
    },
    {
      "id": "h5-scale-guard",
      "title": "h5py 3.15.0 filters.py: high-level scale-offset/Fletcher32 guard",
      "url": "https://github.com/h5py/h5py/blob/3.15.0/h5py/_hl/filters.py#L203-L226",
      "accessed": "2026-10-20"
    },
    {
      "id": "h5-scale-guide",
      "title": "HDF Group dataset guide: scale-offset floating-point suggestions",
      "url": "https://hdfgroup.github.io/hdf5/develop/_h5_d__u_g.html",
      "accessed": "2026-10-20"
    },
    {
      "id": "h5-scale-dataset",
      "title": "h5py 3.15.0 dataset guide: scale-offset, special values and Fletcher32",
      "url": "https://github.com/h5py/h5py/blob/3.15.0/docs/high/dataset.rst",
      "accessed": "2026-10-20"
    },
    {
      "id": "hesela-scale",
      "title": "Hesela: 26 scale-offset round-trip configurations and limits",
      "url": "https://hesela.dev/datasets/hdf5-checksum-coverage/#scale-offset",
      "accessed": "2026-10-20"
    },
    {
      "id": "hdf5-requant-scale",
      "title": "HDF5 1.14.2: minimum-relative scale-offset encoding",
      "url": "https://github.com/HDFGroup/hdf5/blob/2d926cf0426d2ed9403946071d9b05ac8b4dd778/src/H5Zscaleoffset.c",
      "accessed": "2026-11-02"
    },
    {
      "id": "hdf5-requant-chunk",
      "title": "HDF5 1.14.2: dirty-chunk filter pipeline",
      "url": "https://github.com/HDFGroup/hdf5/blob/2d926cf0426d2ed9403946071d9b05ac8b4dd778/src/H5Dchunk.c",
      "accessed": "2026-11-02"
    },
    {
      "id": "hdf5-requant-evidence",
      "title": "Hesela: partial-update evidence, C replay and limits",
      "url": "https://hesela.dev/datasets/hdf5-checksum-coverage/#partial-requantization",
      "accessed": "2026-11-02"
    }
  ],
  "advantages": [],
  "limitations": []
}
