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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.