Skip to content

Hash Checksum of a Delivery

Jiří Kadlec edited this page Aug 28, 2024 · 2 revisions

For every checked delivery, QC tool provides a hash (checksum) of the delivery files. The hash is included in QC job JSON and PDF reports and it is computed as follows:

  • Delivery from uploaded ZIP file: sha256 hash of the ZIP file (Linux command sha256sum, e.g. sha256sum clc2012_mt.gdb.zip)
  • Delivery from S3: a combined sha256 hash of all of the files matching the delivery prefix, computed using the checksumdir python package / command. Calculating the checksum of an S3 delivery can be reproduced by:
    • Install checksumdir python package e.g. pip install checksumdir
    • Create an empty directory e.g download_dir
    • Download all S3 objects matching the filename prefix of the delivery to the download_dir
    • Run the command (checksumdir -a sha256 download_dir). This should return the same hash (checksum) of the S3 delivery.

Clone this wiki locally