I have a raster (5 x 5 m resolution) representing land cover. Each cell contains a integer value (from 1 to 10) representing a total of ten land cover classes (e.g. 1-forest; 2-agricultural areas; 3-urban areas;(...)10-scrublands).
Based on this categorical land cover raster, I would like to produce ten rasters with a resolution of 10 x 10 m representing the proportion of each land cover class per cell. In another words, I would like to produce a raster representing the proportion of forest, another raster representing the proportion of agricultural areas, etc.
This figure explains exactly what I want to do (for illustrative purposes, I only accounted for 3 classes in the figure).
I have been looking for similar questions in the internet, but usually people had slightly different questions (e.g. calculate land cover proportion within a polygon).
Does anyone know how to do this in QGIS?