Filter.enableScaleOffset

void enableScaleOffset(hid_t plistId, H5Z_SO scaleType, int scaleFactor = 0)

Enables the scale-offset filter on a dataset creation property list.

The scale-offset filter stores data as offsets from a minimum value, reducing storage for data with limited range. The dataset must be chunked.

Parameters

plistIdDataset creation property list identifier
scaleTypeType of scaling (use H5Z_SO enum values)
scaleFactorScale factor (interpretation depends on scaleType)

Throws

HDF5Exception if enabling the filter fails.