Skip to main content
SHARE
Publication

Delta-Rice: A HDF5 Compression Plugin optimized for Digitized Detector Data

by David G Mathews, Stefan F Baessler, Leah J Broussard, Francisco M Gonzalez
Publication Type
Journal
Journal Name
The Journal of Open Source Software
Publication Date
Page Number
6598
Volume
9
Issue
98

An efficient method for high performance lossless compression of digitized analog signals within the HDF5 library and data format is presented. This algorithm was developed for the Nab experiment, a fundamental neutron physics experiment, but is broadly applicable to other experimental efforts requiring lossless compression of noisy data. This is a two-step process where correlations between consecutive datapoints are reduced before being passed to a traditional Rice compression algorithm. The reduction of correlations can be tuned to match each dataset through adjustment of the pre-processing filter. A routine for determining the optimal filter for a dataset is demonstrated. Also demonstrated are modifications to allow deployment of this algorithm to both FPGA and GPU architectures. When applied to data collected by the Nab data acquisition system, this method created output files which were 29% their initial size, and was able to do so with an average read/write throughput in excess of 2 GB/s on a single CPU. Compared to the widely used G-zip compression routine, Delta-Rice reduces the file size by 33% more with over an order of magnitude increase in read/write throughput. Delta-Rice is available to users through the HDF5 library.