Reclassify script using Remap data type

Discussion created by willxr on Nov 9, 2012
Latest reply on Mar 6, 2013 by curtvprice

I am having trouble feeding data through to Remap in the script below.  I know im making a mistake somewhere but l cant work out what it is.  I can't get the reclass_field to populate with the raster 'Value'.  Basically l want to reproduce the spatial analyst reclassify tool and then add some more weighted functions afterwards, but im getting stuck from the off.  Please can someone help me out here?

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *

# Get Parameters
infc      = arcpy.GetParameterAsText(0)
reclass_field =  arcpy.GetParameterAsText(1)
reMap = arcpy.GetParameterAsText(1)
outfc     = arcpy.GetParameterAsText(2)

# Local Parameters

recl_data  = "DATA"

# Reclassify
outRecl = arcpy.sa.Reclassify(infc, reclass_field, reMap, recl_data)