Peter - 2014-01-12

Hi Martijn,
the scale & offset filter is very usefull.
Example: Power spectrum with result in dB. Normal range is ~ -50 .. 150 dB. One digit precision is enough.

I checked the h5ex_d_sofloat example from http://www.hdfgroup.org/HDF5/examples/api18-c.html with
define DIM0 320
define DIM1 640
*)
define CHUNK0 40
define CHUNK1 80
define DScalingFactor 2
and below
status = H5Pset_scaleoffset (dcpl, H5Z_SO_FLOAT_DSCALE, DScalingFactor);

Array Size: 320*640 = 204800 Elements = 1638400 Bytes

DScalingFactor Filesize Bytes per Element
2 347832 1.7
1 270232 1.3
0 192632 0.94

It is difficult to implement the function H5Pset_scaleoffset in h5labview.lib ?

Peter

*) To avoid a stack overflow exception for this example I set "Stack Reserve Size" = 50000000 in the VS2010 Propject Properties: Configuration Properties/Linker/System

 

Last edit: Peter 2014-01-12