I'm a beginner in GDAL and don't understand the logic of it work completly.
I have a folder with 2 DEM-tif files and I need to do this:
gdal_calc.py -A D:WORK\gdal\dem05.tif -B D:WORK\gdal\dem31_size05.tif --outfile=demdiff_0531
The DEM have different sizes and different pixel sizes (so I'm getting errors), but the same location and the same coordinate systems.
I will have different DEMs in the future so I need to know how to do it in general.
"Error! Dimensions of file D:WORK\gdal\dem31.tif (25521, 21308) are different from other files (28986, 13493). Cannot proceed" And when I did "gdal_translate -outsize" and when I made them the same size I got this: – Traceback (most recent call last): File "C:\Program Files (x86)\GDAL\gdal_calc.py", line 335, in main() File "C:\Program Files (x86)\GDAL\gdal_calc.py", line 332, in main doit(opts, args) File "C:\Program Files (x86)\GDAL\gdal_calc.py", line 168, in doit myOut.SetGeoTransform(myFiles.GetGeoTransform()) AttributeError: 'NoneType' object has no attribute 'SetGeoTransform'