3

I have a land use classification raster file and a grided (5 km² grids) shapefile of my study region. I want to compute a landscape complexity index (LC) which can be computed by: LC = number of classes / number of pixels of dominant class.

I could compute the number of classes per grid with zonal statistics, but I am struggling with the calculation of the number of pixels of the dominant class per grid. How can that be accomplished?

1 Answer 1

4

Use Zonal histogram tool:

Appends fields representing counts of each unique value from a raster layer contained within polygon features.

enter image description here

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.