CHKHASH

Verify hash test value


EnvironmentsPYTHON :: EASI
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


CHKHASH performs hash checksum verifications for a series of images, as specified in the input hash text file, and generates a report on the images that pass and fail.
Back to top

Parameters


Name Type Caption Length Value range
TFILE * String Input hash text file 1 - 192  
MONITOR String Monitor mode 0 - 3 ON, OFF
Default: ON

* Required parameter
Back to top

Parameter descriptions

TFILE

Specifies the name of the text file containing the image files, channels, and windows to verify.

MONITOR

The program progress can be monitored by printing the percentage of processing completed. A system parameter, MONITOR, controls this activity.

Available options are:

Back to top

Details

CHKHASH performs a hashing function checksum test on all the images in the provided test file (TFILE). The input text file is generated by GENHASH. The CHKHASH procedure is generally used to perform regression testing on the GDB library, across various platforms.

Any GDB-supported image formats can be used as input. For detailed information about the input text file, refer to the documentation.

The report is written to the screen, indicating whether each image passed or failed the checksum comparison.

Back to top

Example

Generate a hashing test file for the specified channels and bitmaps on irvine.pix and the specified channel on eltoro.pix from the Demo folder. Then run CHKHASH to verify the hash values. This operation will work on any supported platform, not only the platform on which the hash file was generated.

EASI>tfile = "pcidemo.hsh"
EASI>file = "/demo/irvine.pix"
EASI>dbic = 1,2,3,4,5,6,7,8,9,10,11
EASI>dbib = 9,10,11,12,13,14,15,16
EASI>dbiw=
EASI>run genhash

EASI>file = "/demo/eltoro.pix"
EASI>dbic = 1
EASI>dbib =
EASI>run genhash

EASI>file = "/demo/map100.pix"
EASI>dbic=1,2,3
EASI>run genhash

EASI>run chkhash  ! run on another system

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.