I have a raster file containing the depth of water. I need to find the volume of water using that raster file. I need to find the area of each cell and multiply with the depth. How can I do it in Python using ArcGIS 10 ?

---

```
rasvol = 0
rasterArea=gp.searchCursor(reservoir_area)
rasRow=rasterArea.next()
while rasRow:
     rasCount=rasRow.getValue('Count')
     rasValue=rasRow.getValue('Value')
     rasvol=rasvol + rasCount*rasValue*cellarea
     rasRow=rasterArea.next()

```

This code is correct or not for calculating the volume ?