HDF5 fill value
An HDF5 fill value is a configured or default element value used for uninitialized data, missing VDS source regions and some filter encodings.
Creation property: H5Pset_fill_value defines the value using a datatype; the default is zero interpreted for the dataset datatype. A suitable application may reserve an otherwise invalid value to make missing data conspicuous. [2]
Virtual data: a missing source can produce fill values through a VDS read. Such an output value is not automatically a measurement, a validity mask or proof of a storage fault. [1]
Interpretation: an explicit sentinel helps only if the application treats it as missing and excludes it from valid data. It cannot identify the intended source when another valid dataset is resolved in its place. [3]
Scale-offset: in HDF5 1.14.6, fully written floating-point values near the declared fill can decode as fill after scale-offset encoding. The official guide warns about near-zero data with default fill zero. A fill-valued result alone therefore does not establish that an element was never written; this differs from VDS source absence. [4] [5]
External raw files: EOF zero-padding is not sentinel substitution. In a separate HDF5 1.14.6 int32 experiment, short external files returned zero bytes or a partially changed integer despite fillvalue=-999; an entirely absent file raised an error. Do not generalize VDS missing-source behavior to this storage mechanism. [6]
Relations
Citations
- The HDF Group: Introduction to the Virtual Dataset
- The HDF Group: H5Pset_virtual source-file resolution and H5Pset_fill_value
- Hesela: HDF5 virtual dataset dependency observations
- HDF Group dataset guide: scale-offset floating-point suggestions
- Hesela: 26 scale-offset round-trip configurations and limits
- Hesela: external raw-file truncation observations (42 fixtures, HDF5 1.14.6)