# Pseudocode: while True: try: arcpy.FunctionThatNeedsRasterStatistics(raster) break except arcpy.ExecuteError: arcpy.CalculateStatistics(raster)
try: arcpy.GetRasterProperties_management(input, "STD") print "Statistics exist" except arcpy.ExecuteError: arcpy.CalculateStatistics_management(input) print "Statistics were calculated"
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.