I am using the Slice function like this:
import arcpy
from arcpy import env
from arcpy.sa import *
import time, os, sys
env.overwriteOutput = 1
arcpy.CheckOutExtension ("spatial")
inpath = sys.path[0]
env.workspace = inpath
grd = 'pc7114'
outgrd = Slice(grd, 255, "EQUAL_AREA",1)
outgrd.save(inpath + os.sep + "tmp_grd")
It gave the following error:
could not get channel
could not get channel
could not get channel
... 58 lines of "could not get channel"
But it did create a Grid: tmo_grd
If I run 9.3 version gp.slice_sa(grd, "tmp_grd", 255, "EQUAL_AREA") in 9.4, No error at all.
What is wrong?