From the help documentation:Using the Is Null in conjunction with the Con tool, you can change NoData values on a raster to any desired value while retaining the original non-NoData values for the remaining cells.---To change NoData value to 0, you can simply use the raster calculator with following statement:Con(IsNull(raster), 0, raster). [ATTACH=CONFIG]11938[/ATTACH]
outWorkspace = "D:/GIS_Watf/Output_PrepAnalysis/" inRaster = "D:/GIS_Watf/Output_wi/d074bhgo_wi" outRaster = outWorkspace + "e074bhgo" #extent is xmin ymin xmax ymax arcpy.env.extent = arcpy.Extent(-2638000, 1870000, 2210000, 5923000) # Process: Copy Raster arcpy.CopyRaster_management(inRaster, outRaster, "", "", "", "NONE", "NONE", "")
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.