| hdiff | stsdas.toolbox.headers | hdiff |
hdiff -- Display the differences between two image headers.
hdiff input1 input2
The hdiff task prints the differences between two image headers on STDOUT. A line is printed each time a keyword is present in one image but not in the other, or when the value of the keyword is different between the two headers. If no differences are found, this task produces no output. Keyword comments, blank lines, and HISTORY and COMMENT keywords are always ignored. All groups will be checked unless a group specifier is added to the image name. The hidden parameter keywords controls which keywords will be checked for differences. If it is left blank, all keywords will be compared.
1. Compare the keywords fchnl, nchnls, nxsteps, and overscan in the images y1000.d0h and y1001.d0h:
to> hdiff y1000.d0h y1001.d0h key="fchnl,nchnls,nxsteps,overscan"
2. Compare all the images in a directory with their data quality masks for differences:
to> hdiff *.d0h *.%d0h%q0h%