I am supposed to clip 6 raster files of Europe by a raster of agricultural land in Europe (mask layer). Initially, to do that I vectorised my mask layer and then clipped the rasters by that. It seemed to work fine. I then normalised my outputs to all range from 0-1.
But my professor now says that I was not supposed to do it this way, since it causes “masking issues“ when comparing the output rasters. Specifically, he criticised that my output rasters don’t make it clear which pixels are no data and which are 0 and that when using a vector to clip it might create some “odd shapes”, i.e. cutting a cell in half. I checked my outputs and couldn’t see any evidence of this, but I have to redo my files anyway.
I’ve spent several days trying to figure out how to do the clipping using a raster as the mask layer instead, but couldn’t get it to give me outputs that make sense. Some things I tried:
- clip raster by extent, using the mask layer as the extent
- this: Clipping raster layer with *raster* mask layer in QGIS
- this: Getting rid of cells of 0 values in raster using QGIS?