try: gp.IsNull_sa(inRaster, isnull_raster) gp.ZonalStatisticsAsTable_sa(isnull_raster, "Value", isnull_raster, zonal_nodata_output) rows = gp.searchcursor(zonal_nodata_output,"VALUE>0","","SUM") rows = rows.next() rows = rows.getvalue("SUM") if rows >=1: print "error nodata cells exist" except: # If an error occurred while running a tool, then print the messages. print gp.GetMessages()
IsNull("Block_1_0") | "Block_1_0" < 0)
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.