I have a problem while using gdal_calc by a .bat file.
Here is the code :
call “C:OSGeo4w64bino4w_env.bat”
gdal_calc -A”D:tuilage_script_1tuilagendvi4_810000_6370000_820000_6360000_ndvi.tif” –calc=”A” –outfile=”D:tuilage_script_1tuilagendvitest_gdal_cal3.tif”
It first loads OSGEO environment then it copys the input raster “A” in an output raster “outfile”. The operation is done, but I get the following error messsage : “Python has stopped working”, see picture enclosed
I already read this topic :
GDAL_CALC works but I get a python error at the end of each process that prevents automation
But the solution doesn’t fit with the aim of my batch file that must be automated to be runned from an office basic script for more than 100 operations.
I am using 1.11.2 Gdal version with 2.8 Qgis Wien, 2.7 Python version on Windows-7.
I would be very grateful for any idea/suggestion about this.
Thanks!