THG Home Page hdiff*


hdiff* is a command line tool that compares 2 HDF files and reports differences between them. Only datasets, attributes and vdata objects are compared. This document presents the basic usage of the program. Additional output information with several cases can be found in the examples document.

Usage

The usage and options are

hdiff [-b] [-g] [-s] [-d] [-S] [-v ...] [-e counnt] [-t limit] file1 file2
  [-b]              Verbose mode
  [-g]              Compare global attributes only
  [-s]              Compare SD local attributes only
  [-d]              Compare SD data only
  [-D]              Compare Vdata data only
  [-S]              Print statistics
  [-v var1[,...]]   Compare SD data on variable(s) <var1>,... only
  [-u var1[,...]]   Compare vdata on variable(s) <var1>,... only
  [-e count]        Print difference up to count number for each variable
  [-t limit]        Print difference when it is greater than limit
  file1             File name of the first input HDF file
  file2             File name of the second input HDF file
return code: 0 - no differences found; 1 - differences found
* The hdiff tool is new with HDF 4.2r0 and should not be confused with the user-contributed hdiff tool.
Last modified: March 19, 2007