Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.
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()
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
15 Experts available now in Live!