MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
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 RasterImage, 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.
|Can't install scipy on Python 2.7 in Win7||2||338|
|What regex will remove duplicate rel="nofolow" tags?||3||132|
|Powershell script to send email via Gmail if file is older than specified time||9||200|
|Data frame to nested dictionary using to_dict||2||55|
Join the community of 500,000 technology professionals and ask your questions.