What I want to do is test the maximum value in the resulting raster and stop the iteration if the max value does not equal -999 (the value in the cells is -999 they need to be changed). I can't figure out how to make the "while" or "if" iterators work with raster statistics (max cell value).
def StopTest(outRaster): import arcpy max = int(arcpy.GetRasterProperties_management (outRaster,"MAX").getOutput(0)) if max == -999: return True # keep iterating else: return False # time to stop
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.