How do I get the values of each cell in the raster attribute table. Usually the attribute table gives you the value and number of counts. But, in my case I want each cell listed and corresponding cell values.
Thank bunch..!
|
How do I get the values of each cell in the raster attribute table. Usually the attribute table gives you the value and number of counts. But, in my case I want each cell listed and corresponding cell values. Thank bunch..! |
||||
|
|
|
I notice you didn't mention Python at all, but it is possible to output a raster as a numpy array (arcpy.RasterToNumPyArray). Then you can iterate over the rows and columns of the array to get your result. Assuming this is the output you want:
Then all you have to do is:
Note that writing to files needs to write strings. array.item() returns an actual Python data type, hence casting it into a string here. If you are running this in ArcMap, there is no need to import arcpy (the very first line). |
|||||
|
|
It is not possible to display each cell in the raster attribute table. The raster attribute table shows zones. |
|||
|
|
|
Convert the grid to a point shapefile using Raster To Point Conversion, then view/edit/export that file's table. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000007000000 |
|||
|
|