title: Python Script to Run for ArcGIS
body: <p>I want to run python scripts that use geo-processing tools. I do not want to integrate them, instead I want to run scripts outside and not in ArcGIS. Please tell me how to do it with a nice example. I have to do reclassification of 4 maps and then do a weighted sum overlay of the outputs. Below is the script which I am able to write, but I don't know where I am getting an error..</p>
  
  <pre><code>enter code here # 
  
  import sys, string, os, arcgisscripting
   gp = arcgisscripting.create()
   gp.CheckOutExtension("spatial")
  
    gp.AddToolbox("C:/../Spatial Analyst Tools.tbx")
  
    feature_shp1 = sys.argv[1]
    if feature_shp1 == '#':
     feature_shp1 = "D:\\BRIEFCASE\\media\\new shapefiles\\feature_shp1"
    slope = sys.argv[2]
    if slope == '#':
    slope = "D:\\" 
  
    Reclassification__2_ = sys.argv[3]
    if Reclassification__2_ == '#':
    Reclassification__2_ = "2 1;2 3 2;3 4 3;4 5 4" 
  
    Reclassification = sys.argv[4]
    if Reclassification == '#':
    Reclassification = "0 13 1;13 45 2;45 80 3;80 108 4;108 146 5;146 176;174   195 7;195 231 8;231 255 9" 
  
    Reclass_feat3 = "D:\\"
    Reclass_slop3 = "D:\\3"
    gjh = "C:\"
    Reclass_field = "VALUE"
    Reclass_field__2_ = "VALUE"
  
    gp.Reclassify_sa(feature_shp1, Reclass_field__2_, Reclassification__2_,            Reclass_feat3, "NODATA")
  
    gp.Reclassify_sa(slope, Reclass_field, Reclassification, Reclass_slop3, "NODATA")
  
    gp.WeightedSum_sa("'..Reclass_feat3' VALUE 1;'D:..Reclass_slop3' VALUE 1","ijh")
  </code></pre>