Select to view content in your preferred language

Area of connected raster cells with same value

565
3
Jump to solution
10-30-2024 06:05 AM
another_student
New Contributor

Hi,

 

I have a raster that describes landcover with 6 classes. I would like to have a new raster that has area of connected cells of same value of the original raster. I know I can use Region Group tool and check the counts of each region. But I need a new area raster that has the areas (or count of cells) of each connected patches as values so that I can Extract Values to Points. How can I do that? Thanks for help!

 

another_student_0-1730293227963.png

 

0 Kudos
2 Solutions

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

my first thought would be to use the Count field in the raster table of the resultant regiongroup

Lookup (Spatial Analyst)—ArcGIS Pro | Documentation

essentially you are replacing the existing value field with the count field via a "lookup" table.


... sort of retired...

View solution in original post

Luke_Pinner
MVP Regular Contributor

Yes, Region Group then Lookup is how I've done this previously. Though to get area you'll need to multiply the count by pixel area (count * pixel width * pixel height), assuming your raster is in a projected CRS, not geographic.

View solution in original post

3 Replies
DanPatterson
MVP Esteemed Contributor

my first thought would be to use the Count field in the raster table of the resultant regiongroup

Lookup (Spatial Analyst)—ArcGIS Pro | Documentation

essentially you are replacing the existing value field with the count field via a "lookup" table.


... sort of retired...
Luke_Pinner
MVP Regular Contributor

Yes, Region Group then Lookup is how I've done this previously. Though to get area you'll need to multiply the count by pixel area (count * pixel width * pixel height), assuming your raster is in a projected CRS, not geographic.

another_student
New Contributor

Thank you so much Dan and Luke! Lookup was exactly the tool I was looking for.

0 Kudos