H5P_SET_DATA_TRANSFORM sets the data transform to be used for reading and writing data. This function operates on the dataset transfer property lists plist_id . The expression parameter is a string containing an algebraic expression, such as (5/9.0)*(x-32) or x*(x-5) . When a dataset is read or written with this property list, the transform expression is applied with the x being replaced by the values in the dataset. When reading data, the values in the file are not changed and the transformed data is returned to the user. Data transforms can only be applied to integer or floating-point datasets. Order of operations is obeyed and the only supported operations are +, -, *, and /. Parentheses can be nested arbitrarily and can be used to change precedence. When writing data back to the dataset, the transformed data is written to the file and there is no way to recover the original values to which the transform was applied. |