Compression Scheme | Median Compression Ratio |
DEMzip (no options) | 11.0% |
DEMzip (-epsg, -nodata_min) | 8.4% |
GDAL GTiff (COMPRESS=LZW, PREDICTOR=2) | 34.5% |
GDAL GTiff (COMPRESS=LZW, PREDICTOR=3) | 36.0% |
GDAL GTiff (COMPRESS=LZW, PREDICTOR=3, DISCARD_LSB=12) | 13.0% |
GDAL GTiff (COMPRESS=ZSTD, PREDICTOR=3) | 27.8% |
GDAL GTiff (COMPRESS=LERC_ZSTD, PREDICTOR=3, MAZ_Z_ERROR=0.01) | 15.1% |
GDAL GTiff (COMPRESS=LERC_ZSTD, PREDICTOR=3, MAZ_Z_ERROR=0.01, DISCARD_LSB=12) | 14.5% |
He writes that "the only compressor that occasionally beats DEMzip is the very dangerous “only use if you know what you’re doing” LZW with predictor 3 and discarding the least significant 12 bits, which also produces somewhat unreliable results (I only guessed at the 12 bits instead of actually thinking about it). So DEMzip with NODATA removal is by far the best compression tested."
Thank you, Nathanael, for these excellent experiments.
Martin
-scale
[src_min src_max [dst_min dst_max]]