Spatial Analyst: Slice Error

976
2
11-11-2009 08:19 PM
WentaoChe
Occasional Contributor II
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?
0 Kudos
2 Replies
EricRice
Esri Regular Contributor
We have seen this type of error before through Support.  An engineer asked me to respond to you to let you know the fix for this issue should be in Beta 2.  For now you can ingnore those errors and continue to work with the output that you did get from the commands you ran.

Regards,
0 Kudos
WentaoChe
Occasional Contributor II
Eric,

Thank you very much.

Wentao Che

Kokusai Kogyo Co. LTD.
Geospatial Information Division
183-0057, Tokyo, Japan
Tel: 042-307-7421
Email: wentao@kkc.co.jp
http://www.kkc.co.jp
0 Kudos