I have a problem while using gdal_calc by a .bat file. Here is the code :
call "C:\OSGeo4w64\bin\o4w_env.bat" gdal_calc -A"D:\tuilage_script_1\tuilage\ndvi\4_810000_6370000_820000_6360000_ndvi.tif" --calc="A" --outfile="D:\tuilage_script_1\tuilage\ndvi\test_gdal_cal3.tif"
It first loads OSGEO environment, then it copies 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 run 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.