h5diff(1)
π h5diff β like, the diff tool but for HDF5 files π
okay bestie, welcome to the h5diff(1) page from the General Commands Manual π no cap, this one's a whole vibe: it's the little command-line icon that peeks inside two HDF5 files and tells you everything that's different between them. let's get into it π
β¨ NAME β¨
h5diff β compares two HDF5 files and reports the differences. that's it, that's the whole job, and it ate π«Ά
πΈ SYNOPSIS πΈ
h5diff file1 file2 [OPTIONS] [object1 [object2 ] ]
π¦ DESCRIPTION π¦
so h5diff is a command line tool that compares two HDF5 files, file1 and file2, and reports the differences between them. literally its entire main character arc π«
optionally, h5diff will compare two objects within these files. here's the tea:
- if only one object,
object1, is specified,h5diffwill compareobject1infile1withobject1infile2. same name, both files, cute. - if two objects,
object1andobject2, are specified,h5diffwill compareobject1infile1withobject2infile2. cross-file matching, we love to see it β¨
heads up bestie: these objects must be HDF5 datasets. no substitutes, periodt.
also, object1 and object2 must be expressed as absolute paths from the respective file's root group. absolute, not relative, iykyk π§
if you want additional information, with several sample cases, it can be found in the document H5diff Examples. go read it, it's giving study guide π
π OPTIONS π
file1 file2β the HDF5 files to be compared. the two besties getting the vibe check π«Ά-hβ print all differences. every single one. no holding back π-rβ print only the names of objects that differ; do not print the differences. these objects may be HDF5 datasets, groups, or named datatypes. just the receipts, not the drama π-n countβ print difference up tocountdifferences, then stop.countmust be a positive integer. know your limit, stay within it β-d deltaβ print only differences that are greater than the limitdelta.deltamust be a positive number. the comparison criterion is whether the absolute value of the difference of two corresponding values is greater thandelta(e.g.,|a-b| > delta, whereais a value infile1andbis a value infile2). tiny diffs? not invited to the party π-p relativeβ print only differences that are greater than a relative error.relativemust be a positive number. the comparison criterion is whether the absolute value of the difference1and the ratio of two corresponding values is greater thanrelative(e.g.,|1-(b/a)| > relativewhereais a value infile1andbis a value infile2). proportional queen πobject1 object2β specific object(s) within the files to be compared. pick your fighters π
π₯ EXAMPLES π₯
the following h5diff call compares the object /a/b in file1 with the object /a/c in file2:
h5diff file1 file2 /a/b /a/c
this h5diff call compares the object /a/b in file1 with the same object in file2:
h5diff file1 file2 /a/b
and this h5diff call compares all objects in both files:
h5diff file1 file2
π SEE ALSO π
h5dump(1), h5ls(1), h5repart(1), h5import(1), gif2h5(1), h52gif(1), h5perf(1)
go say hi to the whole friend group, they're all iconic π
and that's the whole h5diff(1) page from the General Commands Manual, bestie β you're officially fluent π
β¨ slay, go diff something, and remember: absolute paths only, objects must be datasets, and every detail above is the real deal, no cap π«Άπ
π¦ where this page comes from
- debian bookworm: hdf5-tools 1.10.8+repack1-1 Β· BSD-3-Clause
- debian trixie: hdf5-tools 1.14.5+repack-3 Β· BSD-3-Clause
- epel 10: hdf5 1.14.5-1.el10_0 Β· BSD-3-Clause
- epel 9: hdf5 1.12.1-7.el9.1 Β· BSD
- fedora 43: hdf5 1.14.6-6.fc43 Β· BSD-3-Clause
- fedora 43: hdf5 1.14.6-6.fc43 Β· BSD-3-Clause
- fedora 44: hdf5 1.14.6-7.fc44 Β· BSD-3-Clause
- fedora 44: hdf5 1.14.6-7.fc44 Β· BSD-3-Clause
- ubuntu jammy: hdf5-tools 1.10.7+repack-4ubuntu2 Β· BSD-3-Clause
- ubuntu noble: hdf5-tools 1.10.10+repack-3.1ubuntu4 Β· BSD-3-Clause
- ubuntu questing: hdf5-tools 1.14.5+repack-3build1
- ubuntu resolute: hdf5-tools 1.14.6+repack-2 Β· BSD-3-Clause
- ubuntu stonking: hdf5-tools 2.2.0+repack-5 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms