Can't figure out how to edit the Count field in a raster attribute table

190
9
Jump to solution
04-02-2018 11:20 AM
Highlighted
New Contributor II

I have a canopy raster for Pennsylvania that I clipped for the northeastern portion of the state, to make the file more manageable. Initially, only grids with canopy data (Value = 1) were counted in the raster, but after I clipped it the count field in the new raster is showing a 0 count of value 1. How can I "refresh" the raster and ensure that values are being counted?

Additionally, values of 0 (Open canopy) were not counted in the original raster, but I'd like for them to be counted so I can get a percentage of canopy cover within varying buffer zones. I had tried using the field calculator tool and followed the directions here, but the operation failed returning back Error 000539.

The raster being used was retreived from here: Canopy Data

Running arcmap 10.5.1

Thanks in advance

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
MVP Esteemed Contributor

no clue what the table on the left is, but it certainly isn't from the clipped raster since there is no count field.

Have you moved the clipped raster into its own dataframe /map to make sure there is something there?

The raster type is also different, when you clip it or the copy of the clip, try a *.tif file extension, it looks like you are getting and esri grid since you didn't specify a file extension.

View solution in original post

9 Replies
Highlighted
MVP Esteemed Contributor

have you tried to use the copy raster tool to produce a new raster to see if the count field gets refreshed? or build raster attribute table http://pro.arcgis.com/en/pro-app/tool-reference/data-management/build-raster-attribute-table.htm

Reply
0 Kudos
Highlighted
New Contributor II

Dan Patterson Tried that now, no luck (Copy raster, that is)

Reply
0 Kudos
Highlighted
New Contributor II

Also a negative on Build Raster Attribute Table

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

time to show your raster and your table.

Also... you used the exact same cell size, and snap raster when you did this initially I presume

Reply
0 Kudos
Highlighted
New Contributor II

Cell size is the same. Whole state raster, with polygon used to clip down to northeast.

 Raster. Whole state versus the portion I clipped in the Northeast

Reply
0 Kudos
Highlighted
New Contributor II

Tables for both rasters. I should add this is for a master's thesis. I'm far from a GIS expert, but the professor who runs that department isn't very good at teaching. He's certainly a knowledgeable man but he needs to work on passing his information onto his students.

Reply
0 Kudos
Highlighted
MVP Esteemed Contributor

no clue what the table on the left is, but it certainly isn't from the clipped raster since there is no count field.

Have you moved the clipped raster into its own dataframe /map to make sure there is something there?

The raster type is also different, when you clip it or the copy of the clip, try a *.tif file extension, it looks like you are getting and esri grid since you didn't specify a file extension.

View solution in original post

Highlighted
New Contributor II

I reclipped the original raster and saved it as a .tif. It took several tries, arcMap isn't being cooperative. Values of 1 are now correctly being counted. Any tips now for getting empty space counted? Thanks for the help so far.

Reply
0 Kudos
Highlighted
New Contributor II

Actually, I went back to that first page I tried using for assigning 0 to null values and it seems to have worked now. Wanna go back through and double check some things, but thanks again for the help

Reply
0 Kudos