I am a beginner to Python in ArcGIS and would like to perform a calculation on a raster that's a bit complicated than what Raster Calculator can do. I know the python code for my expression, so I thought I could do a simple function in Raster Calculator (e.g Multiply by 2.0) and then see the python code for that, and modify as required.Can I do this, and if so, how can I get to see the python script involved in this?Thanks in advance
import arcpy myInputRaster = arcpy.Raster("theNameOfMyRasterInTheTOC") myResult = myInputRaster * 2 myResult.save("theNameOfMyOutputRaster")
arcpy.sa.Times("theNameOfMyRasterInTheTOC",2)
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.