I'm trying to perform an operation using gdal calculator:
90*logical_and(A==111, B==3) + 92*logical_and(A==111, B==4) + 81*logical_and(A==112, B==3) + 86*logical_and(A==112, B==4)
but I get the following error:
gdal_calc.py: error: the following arguments are required: --outfile
Do you know what it means?
COMMAND IN GDAL RASTER CALCULATOR
input raster A: Uso_suolo_like_gruppi_idro_reclass_off (EPSG: 32632, float 32); input raster B: gruppi_idro_reclass_dimension (EPSG: 32632, 8 byte);
gdal_calc.bat --calc "gdal_calc.bat --calc "90*logical_and(A==111,B==3) + 92*logical_and(A==111, B==4) + 81*logical_and(A==112, B==3) + 86*logical_and(A==112, B==4)" --format GTiff --type Float32 -A C:\data\orto\3band.tif --A_band 1 -B C:\data\orto\3band.tif --B_band 2 -C C:\data\orto\3band.tif --C_band 3 --outfile C:/Temp/processing_xIueLp/c3ead72b992c4f9baac3f260b69082c2/OUTPUT.tif" --format GTiff --type Byte -A "Uso suolo_like_gruppi_idro_reclass_off" --A_band 1 --B "C:\\Users\\Anto\\OneDrive\\Desktop\\Progetto ROMA\\DATI\\Dati GIS\\Acqua\\Gruppi_idro_reclass.tif" --B_band 1 --outfile C:/Users/Anto/AppData/Local/Temp/processing_zxLIka/29c0cbd5ca6547f995f39f24fa301993/OUTPUT.tif
output raster: float 32
RESULT
gdal_calc.py: error: unrecognized arguments: suolo_like_gruppi_idro_reclass_off --A_band 1 --B C:\Users\Anto\OneDrive\Desktop\Progetto ROMA\DATI\Dati GIS\Acqua\Gruppi_idro_reclass.tif --B_band 1 --outfile C:/Users/Anto/AppData/Local/Temp/processing_zxLIka/29c0cbd5ca6547f995f39f24fa301993/OUTPUT.tif
COMMAND IN GDAL RASTER CALCULATOR
input raster A: Uso_suolo_like_gruppi_idro_reclass_off (EPSG: 32632, float 32); input raster B: gruppi_idro_reclass_dimension (EPSG: 32632, 8 byte);
gdal_calc.bat --calc "gdal_calc.bat --calc "90*logical_and(A==111,B==3) + 92*logical_and(A==111, B==4) + 81*logical_and(A==112, B==3) + 86*logical_and(A==112, B==4)" --format GTiff --type Float32 -A C:\data\orto\3band.tif --A_band 1 -B C:\data\orto\3band.tif --B_band 2 -C C:\data\orto\3band.tif --C_band 3 --outfile C:/Temp/processing_xIueLp/c3ead72b992c4f9baac3f260b69082c2/OUTPUT.tif" --format GTiff --type Byte -A "Uso suolo_like_gruppi_idro_reclass_off" --A_band 1 --B "C:\\Users\\Anto\\OneDrive\\Desktop\\Progetto ROMA\\DATI\\Dati GIS\\Acqua\\Gruppi_idro_reclass.tif" --B_band 1 --outfile C:/Users/Anto/AppData/Local/Temp/processing_zxLIka/29c0cbd5ca6547f995f39f24fa301993/OUTPUT.tif
output raster: float 32
RESULT
gdal_calc.py: error: unrecognized arguments: suolo_like_gruppi_idro_reclass_off --A_band 1 --B C:\\Users\\Anto\\OneDrive\\Desktop\\Progetto ROMA\\DATI\\Dati GIS\\Acqua\\Gruppi_idro_reclass.tif --B_band 1 --outfile C:/Users/Anto/AppData/Local/Temp/processing_zxLIka/29c0cbd5ca6547f995f39f24fa301993/OUTPUT.tif
gdal_calc.bat --calc "A*2" --format GTiff --type Float32 -A C:\test\test.tif --A_band 1 --outfile C:/Temp/processing_xIueLp/5f627158b03a458ebec6fffa42673d7f/OUTPUT.tif