# Arcpy - Get Cell value of CutFill raster

828
5
05-18-2017 08:06 PM
by
New Contributor

Hello everybody,

Currently I finished implement the Volume calculation using Cut/Fill tool. As you know CutFill tool give us a raster file with an attribute table include the volume change of 2 surface.

So is there a way that we can get the information (coordinate) of the cell corresponding with each row in attribute table, I mean i want to know the position (coordinate) and volume changed of cells in CutFill raster

Best regards

1 Solution

Accepted Solutions
MVP Legendary Contributor

if you want all the points in the raster, then just use the raster to point tool.  If you just want those for a particular zone, query for it in the raster calculator, then use the same tool.  Alternately, you can convert the raster to a NumPyArray and work in pure python numpy... but I suspect you haven't ventured there yet (check my blog for numpy related links and examples of working with rasters)

5 Replies
MVP Legendary Contributor

The table represents zones meeting a condition (see this link) So if you only need particular zones, it would be wise to query for that condition first, then use Raster to Point

by
New Contributor

Thank you very much Mr Dan Patterson,
if i want to get all the Zone in the Attribute table so what i should do in this case?

MVP Legendary Contributor

if you want all the points in the raster, then just use the raster to point tool.  If you just want those for a particular zone, query for it in the raster calculator, then use the same tool.  Alternately, you can convert the raster to a NumPyArray and work in pure python numpy... but I suspect you haven't ventured there yet (check my blog for numpy related links and examples of working with rasters)

by
New Contributor

Thanh you very much Mr Patterson

MVP Legendary Contributor