| Environments | PYTHON :: EASI |
| Quick links | Description :: Parameters :: Parameter descriptions :: Details :: Example :: Related |
| Back to top |
| Back to top |
chkhash(tfile)
| Name | Type | Caption | Length | Value range |
|---|---|---|---|---|
| TFILE * | str | Input hash text file | 1 - |
| Back to top |
TFILE
Specifies the name of the text file containing the image files, channels, and windows to verify.
| Back to top |
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 |
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.
from pci.chkhash import chkhash from pci.genhash import genhash tfile = "pcidemo.hsh" file = r"/demo/irvine.pix" dbic = [1,2,3,4,5] dbib = [9,10,11,12] dbvs = [] dbiw = [] genhash(tfile, file, "ALL", dbic, dbib, dbvs, dbiw) file = r"/demo/eltoro.pix" dbic = [1] dbib = [] genhash(tfile, file, "ALL", dbic, dbib, dbvs, dbiw) chkhash (tfile)
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.