We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
import arcgisscripting, sys, string, os gp = arcgisscripting.create() gp.overwriteoutput = 1 gp.workspace = sys.argv InFolder = sys.argv try: RasterClassList = gp.ListRasters() RasterClassList.Reset() RasterImage = RasterClassList.Next() gp.AddMessage("\n" + "Getting Raster Properties") while RasterImage: gp.AddMessage("Working on " + RasterImage) InFileName = InFolder + "/" + RasterImage InPropertyType = "MEAN" zmax = gp.GetRasterProperties (InFileName, InPropertyType) print zmax gp.AddMessage(RasterImage + " Properties have been collected.") gp.AddMessage("\n") RasterImage = RasterClassList.Next() except: # Print error message if an error occurs print gp.GetMessages()
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Python - How does this 2D array not work?||3||103|
|regex to extract ip:john||17||88|
|How to execute a Python program and gather return output in Java||2||62|
|Python to .bat or Powershell||2||73|
Join the community of 500,000 technology professionals and ask your questions.