arcpy.gp.RasterCalculator_sa("\"%Temp4%\"/2", Temp2)
import arcpy, os, sys, stringfrom arcpy import envfrom arcpy.sa import *arcpy.CheckOutExtension("spatial")arcpy.env.workspace = r'O:\DATA\test'InputFolder = arcpy.env.workspaceTemp4 = InputFolder + '\\' + temp4RasterList = arcpy.ListRasters() for RasterImage in RasterList: Temp4 = FocalStatistics('RasterImage', NbrRectangle (9, 9, 'CELL'), "RANGE", "DATA") print ('Focal Statistics').....
according to the help, the raster calculator is for use inside arcmap only, for calculations in python you should use mapalgebra:http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000z7000000.htm
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.