1

I often have to compare hdf files. How I do it is either with a binary diff (which tells me files are different even though the actual numbers inside are the same) or by dumping the content into a txt file with h5dump and the comparing the content of the two files (which is also quite annoying).

I was wondering if there is a more clever way to do this, perhaps a feature of h5 or of softwares like HDFView or Panoply.

Manfredo
  • 1,760
  • 4
  • 25
  • 53

2 Answers2

2

Perhaps hdiff is what you require ? Some examples here

Brian Agnew
  • 268,207
  • 37
  • 334
  • 440
0

h5diff can be used to compare HDF5 files, and on Ubuntu it can be installed with

apt-get install hdf5-tools

then it's simply

h5diff file1.hdf5 file2.hdf5
feilong
  • 649
  • 5
  • 7
  • why isnt this question in `Cross Validated` section? i thought HDF5 is a specific format used in big data and alikes – ivan866 Aug 22 '20 at 21:30