Skip to content

Commit

Permalink
Remove perdictor=2 for rho interpolation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ghislainv committed Jun 17, 2024
1 parent a0aa7dc commit ff0a37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forestatrisk/predict/interpolate_rho.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ff0a37c

Please sign in to comment.