12/24/2023 0 Comments Arcmap raster calculator![]() ![]() ![]() ![]() How can I add all my rasters in my directory inputFolder and create one output raster? I have the following code so far: inputFolder = "/home/usr/Desktop/"įor root, dirs, files in os.walk(path, filter):įor file in fnmatch.filter(files, filter):įor l in findRasters(inputFolder, '*.tif'): When I use the raster calculator, it manages to do what I want, but now I need to use it outside QGIS and do it automatically for all rasters in the folder. ![]() The problem is the rasters have different number of rows and columns and different resolution (reading them in as numpy arrays and adding them does not work). I have a directory with binary raster files (1 band only) which I need to add in a standalone python script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |