<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Spatial Analyst: Slice Error in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41957#M532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Slice function like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import time, os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension ("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inpath = sys.path[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = inpath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grd = 'pc7114'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outgrd = Slice(grd, 255, "EQUAL_AREA",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outgrd.save(inpath + os.sep + "tmp_grd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gave the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... 58 lines of "could not get channel"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it did create a Grid: tmo_grd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run 9.3 version gp.slice_sa(grd, "tmp_grd", 255, "EQUAL_AREA") in 9.4, No error at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2009 04:19:37 GMT</pubDate>
    <dc:creator>WentaoChe</dc:creator>
    <dc:date>2009-11-12T04:19:37Z</dc:date>
    <item>
      <title>Spatial Analyst: Slice Error</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41957#M532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Slice function like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import time, os, sys&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.overwriteOutput = 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CheckOutExtension ("spatial")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inpath = sys.path[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;env.workspace = inpath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grd = 'pc7114'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outgrd = Slice(grd, 255, "EQUAL_AREA",1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;outgrd.save(inpath + os.sep + "tmp_grd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It gave the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;could not get channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;... 58 lines of "could not get channel"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But it did create a Grid: tmo_grd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run 9.3 version gp.slice_sa(grd, "tmp_grd", 255, "EQUAL_AREA") in 9.4, No error at all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2009 04:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41957#M532</guid>
      <dc:creator>WentaoChe</dc:creator>
      <dc:date>2009-11-12T04:19:37Z</dc:date>
    </item>
    <item>
      <title>Slice Error</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41958#M533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have seen this type of error before through Support.&amp;nbsp; An engineer asked me to respond to you to let you know the fix for this issue should be in Beta 2.&amp;nbsp; For now you can ingnore those errors and continue to work with the output that you did get from the commands you ran.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 14:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41958#M533</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2009-11-17T14:27:47Z</dc:date>
    </item>
    <item>
      <title>Thanks</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41959#M534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wentao Che&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kokusai Kogyo Co. LTD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geospatial Information Division&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;183-0057, Tokyo, Japan&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tel: 042-307-7421&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Email: &lt;/SPAN&gt;&lt;A href="mailto:wentao@kkc.co.jp"&gt;wentao@kkc.co.jp&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.kkc.co.jp"&gt;http://www.kkc.co.jp&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Nov 2009 04:43:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/spatial-analyst-slice-error/m-p/41959#M534</guid>
      <dc:creator>WentaoChe</dc:creator>
      <dc:date>2009-11-18T04:43:39Z</dc:date>
    </item>
  </channel>
</rss>

