I used the following lines of code to classify a raster. However, my problem is how can I denote the old and new classification values in the last code line using variables? Then number of values hence the number of variables may vary from raster to raster. I note that I know how to read these values from the raster attribute table. Thanks
' Create the Geoprocessor object
Set GP = WScript.CreateObject("esriGeoprocessing.GPDispatch.1")
' Check out any necessary licenses
GP.CheckOutExtension "spatial"
' Load required toolboxes...
GP.AddToolbox "C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx"
' Local variables...
Reclass_rast1 = "C:\LACONISS\LandSpaCES\Reclass_rast1"
Substract5_12 = "Substract5_12"
' Process: Reclassify...
GP.Reclassify_sa Substract5_12, "VALUE", "-3 0;-2 0;-1 0;0 1;1 0;2 0;3 0", Reclass_rast1, "DATA"