I do serial HDF5 with ZFP compression on thousands of files. I can get compression ratios from 3D arrays by using h5ls -rv on individual files (and piping the output to some shell tools), but I’m looking for a way to get them from calling HDF5 routines from within C or Fortran, which h5ls must do. I want to collect statistics on how much compression is happening with ZFP on each array/file, as I am using the accuracy parameter which does dynamic compression. I’d like to be able to collect this information from the same code (written in C) that reads from the ZFP compressed files. Is there a straightforward way to do this?