Extracting the pixelwise proportion of classes of a finer raster in a coarser one

المشرف العام

Administrator
طاقم الإدارة
I have two rasters, one has a 1 km resolution. The other has a spatial resolution of 30 m. This latter pixelwise is a classification. I want to overlay the 1 km raster on the classification raster and extract for each 1 km pixel the distribution of classes corresponding to the 30 m classification.



The 30 m classification includes 7 classes so I would want this process to produce 7 new layers at 1 km. One for each class. Each pixel of 1 km will now have associated a corresponding % of the presence of each class present in the 30 m classification. If one would make a table where each row is a pixel then you would have a table like the following:



One additional difficulty is that the rasters are quite big. I would really like to achieve this using python.



أكثر...
 
أعلى