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
plistId | Dataset creation property list identifier |
scaleType | Type of scaling (use H5Z_SO enum values) |
scaleFactor | Scale factor (interpretation depends on scaleType) |
Throws
HDF5Exception if enabling the filter fails.