try: arcpy.GetRasterProperties_management(input, "STD") print "Statistics exist" except arcpy.ExecuteError: arcpy.CalculateStatistics_management(input) print "Statistics were calculated"
# Pseudocode: while True: try: arcpy.FunctionThatNeedsRasterStatistics(raster) break except arcpy.ExecuteError: arcpy.CalculateStatistics(raster)
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.