0

I have a list containing 3 rasters. Running the cell statistics operation on this results in a raster in the default database. My work involves getting the numbers in the count column. I don't want to generate the raster. I just want to extract values from the output in memory if possible.

outrast=CellStatistics(rlist,"SUM")

output raster name is "sumco_ras" which seems to be a default name. "outrast" is only layer name I think.

Using SearchCursor I can extract the values but it is getting complicated when the output raster is in another database with a different name.

Ideal solution would be an output in the memory workspace

Version:10.2.2

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 23, 2016 at 17:17
1
  • Please edit the question to specify the version of ArcGIS is use. Commented Oct 23, 2016 at 17:23

1 Answer 1

1

Cell statistics is intended to be used on a per cell basis. From the Cell Statistics documentation:

  • Determines the sum of the values in the inputs on a cell-by-cell basis.
  • If all the inputs are integer, the output is integer. If any of the inputs are floating point, the output is floating point.

enter image description here

You may be more interested in summarizing cells within zones, in which case you would want to use Zonal Statistics as Table or Tabulate Area, both of which provide cell counts.

answered Oct 23, 2016 at 17:26

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.