Hello all!
I am currently working on making a map of 2.5m pixel cells to 25m pixel cells where the pixels are land classes. The 25x25m output is made with block statistics (majority rule) to get the pixel value for the 25m cells of the majority of 2.5m input cells. However, equal cells (for example 50 grassland pixels and 50 water pixels of the input) is becoming NoData since there is no majority.
My question is now: Is there a possibility to assign a priority rule to some tool or within raster calculator that chooses which of the equal input cells is chosen as output. For example, grassland has a higher priority than water pixels. So if it is 50/50 it should make an output of Grassland cell. But woods has for example a higher priority than grassland so than woods should be the output. However, if there are 40 grassland pixels, 40 water pixels and 20 wood pixels, the result should be grassland.
I tried many things but it is a difficult puzzle.
I hope you can help me! Thanks in advance.