hdiff(1)
β¨ hdiff β the HDF diff bestie β¨
okay so you've got two HDF files and you're like "are these the same or is something sus" β that's literally what hdiff is for, and it's giving main character energy fr fr π
π SYNOPSIS π
hdiff [-V] [-b] [-g] [-s] [-d] [-D] [-S] [-v var1[,...]] [-u var1[,...]]
[-e count] [-t limit] [-p relative] file1 file2
πΈ DESCRIPTION πΈ
hdiff compares two HDF files and reports the differences. that's it, that's the whole vibe β you hand it file1 and file2, it snitches on every single thing that doesn't match. no cap. π
π OPTIONS π
-Vβ shows you the version of the HDF4 library and then dips out. bye bestie π-bβ verbose mode, aka it actually tells you stuff. chatty era. π£οΈ-gβ compare global attributes only. just the big-picture tea. β-sβ compare SD local attributes only. local lore, nothing else. π-dβ compare SD data only. numbers only, no small talk. π’-Dβ compare Vdata data only. vdata girlies rise. π-Sβ print statistics. receipts, basically. π§Ύ-v var1[,...]β compare SD data on variable(s)var1,...only. pick your faves. π-u var1[,...]β compare vdata on variable(s)var1,...only. same energy, vdata edition. β¨-e countβ print difference up tocountnumber for each variable. a little limit, as a treat. π-t limitβ print difference when it is greater thanlimit. tiny differences? not invited. π«-p relativeβ print difference when it is greater than arelativelimit. proportional drama only. βοΈfile1β File name of the first HDF file. the original, the blueprint. π¦file2β File name of the second HDF file. the challenger. βοΈ
π₯ the rules, bestie π₯
- The
'count'value must be a positive integer. no negative, no zero, no decimals, we're not doing that. π€ - The
'limit'and'relative'values must be positive numbers. - The
-tcompare criteria is|a - b| > limit - The
-pcompare criteria is|(b-a)/a| > relative
π return codes π
0β no differences found. twins. identical. slay. π«Ά1β differences found. something is OFF andhdifffound it. π
lowkey the exit codes are the most important part if you're scripting this, so like, remember them. iykyk.
π see also π
not a whole lot to add here β it's just you, your two HDF files, and the truth. β¨
okay that's the whole page bestie, hope it ate π
this lil cutie comes from the HDF4 crew, dated 28 May 2016 β written in the hdiff(1) manual, section 1, and yeah it's been serving the same facts since then, no notes. π
π¦ where this page comes from
- debian bookworm: hdf4-tools 4.2.15-5 Β· HDF4
- debian trixie: hdf4-tools 4.3.0-1+b1 Β· HDF4
- ubuntu jammy: hdf4-tools 4.2.15-4 Β· HDF4
- ubuntu noble: hdf4-tools 4.2.16-4build1 Β· HDF4
- ubuntu questing: hdf4-tools 4.3.0-1
- ubuntu resolute: hdf4-tools 4.3.1-2 Β· HDF4
- ubuntu stonking: hdf4-tools 4.3.1-3 Β· HDF4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms