Select to view content in your preferred language

Export raster statistics?

3893
10
10-08-2010 05:38 AM
StefanHaglund1
Esri Contributor
Hi!

Does anyone know if there is a tool out there that lets me export the statistics of a raster datatset?

Basically, I would like to write out the statistics of several rasters to a table or textfile. Think of how it looks under the Statistics heading in the Rater Dataset Properties window.

There is the Get raster properties tool, which I could call several times to get most of what I want, but I was hoping for something smoother than that.

I could try and come up with a script that does this but I've looked through the geoprocessor and can't seem to find anything useful there either.

Any suggestions?
Nooski
0 Kudos
10 Replies
curtvprice
MVP Alum

So it appears that my while loop isn't looping. 


You skipped the first record, so you're only getting the second.

    InputRasters = gp.ListRasters()
    ## InputRasters.reset()  NOT NECESSARY, the enumeration is new
    ## InputRaster = InputRasters.next()  # DELETE - this skips to the second record

0 Kudos