As of right now I have two sets of raster files. The first and second set are of differing sizes. I am attempting to use set to clip the other, using the process outlined in this question here Clip raster layer with *raster* mask layer in QGIS (the one that says you can "create a unitary mask on the fly ")

This process works. However, the QGIS raster calculator is unable to use batch processing, and my understanding of the GDAL calculator is it can only be used on similarly sized raster files. I have attempted to use the SAGA raster calculator, but I am unable to get any kind of equation that works.

What equation would I need to use in the SAGA raster calculator to produce similar results - and if this is not possible, what other QGIS specific options do I have?

  • Different sizes in terms of extent or pixel dimensions? In either case gdalwarp) is your friend. You need to align your rasters to one another. So choose one of the sets of rasters (I assume the rasters in each individual "set" share the same dimensions and pixel sizes?) and set them to the extent and pixel size of the other. You'll then have the 2 sets of rasters which now sit on top of one another. That should then allow you to run your raster algebra as required in any software really. – ChrisWills Sep 2 '19 at 15:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.