I have a raster with many classes and I want to know the area or the number of cells for each class.
I found quite a few posts on this topic (see links below). None of the suggestions matched my wishes. I do not want to convert to vector since my raster is fairly big. I am looking for a tool similar to the summarize functions available for vector data, with a table as output.
The raster is a 32bit float tif with 5 unique values (1.0, 2.0, 3.0, 4.0 and 5.0) as classes as a result of classification with QGIS SAGA-Toolbox.
QGIS solutions are preferred. Related posts:
Best Answer
You can use GRASS GIS r.stats as a plugin in QGIS or in stand alone GRASS:
If you need more options like different units use r.report: