From ff0a37c8e204a4cfb48863f94d95919e38ea4c8f Mon Sep 17 00:00:00 2001 From: Ghislain Vieilledent Date: Mon, 17 Jun 2024 12:07:55 +1200 Subject: [PATCH] Remove perdictor=2 for rho interpolation Because fo the following: ERROR test/test_import.py::test_import - RuntimeError: output/rho.tif: PREDICTOR=2 is only supported with 64 bit samples starting with libtiff > 4.3.0. --- forestatrisk/predict/interpolate_rho.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forestatrisk/predict/interpolate_rho.py b/forestatrisk/predict/interpolate_rho.py index aa6d967..0c7c9a9 100644 --- a/forestatrisk/predict/interpolate_rho.py +++ b/forestatrisk/predict/interpolate_rho.py @@ -102,7 +102,7 @@ def interpolate_rho( xRes=csize_new * 1000, yRes=csize_new * 1000, resampleAlg=gdal.GRA_CubicSpline, - creationOptions=["COMPRESS=DEFLATE", "PREDICTOR=2"], + creationOptions=["COMPRESS=DEFLATE"], ) gdal.Warp(output_file, rho_orig_filename, options=param)