janofiles

Problema con Script en Arcgis 10

Discussion created by janofiles on Feb 21, 2011
Latest reply on Feb 22, 2011 by gabrisch
Hola Friends;

Tengo un problema con un script creado en Arcgis 9.3.1 al correrlo en arcgis 10, creo que han cambiado ciertos codigos, si alguien me pudiera ayudar... copio el proceso del script.


# ---------------------------------------------------------------------------
# script4.py
# Created on: mar oct 19 2010 07:38:56 a.m.
#   (generated by ArcGIS/ModelBuilder)
# ---------------------------------------------------------------------------

# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()
gp.overwriteoutput = True

# Check out any necessary licenses
gp.CheckOutExtension("spatial")

# Load required toolboxes...
gp.AddToolbox("C:\Program Files (x86)/ArcGIS/ArcToolBox/Toolboxes/Spatial Analyst Tools.tbx")


# Local variables...
for arg in sys.argv:
instep = sys.argv[1]
OCCAT__tif = "D://Documentation//draft_12//Corridas//4//ScriptInputs//OCCAT_"+ instep + ".tif"
OC_01_tif = "D://Documentation//draft_12//Corridas//4//ScriptInputs//OC_"+ instep + ".tif"

# Process: Slice...
gp.Slice_sa(OC_01_tif, OCCAT__tif, "10", "EQUAL_AREA", "1")




GRACIAS.....

Outcomes